I'm looking to create a new Custom Component providing a Lookup capability.
Initially I thought I could reuse the "AutoComplete" Custom Control, as this gives me the feature of adding the
DataSource with the auto complete functionality.
However, my requirements is to enhance the control to add a button (lookup button) which when selected would open up a dialog window
allowing a user to select a record.

I have a control which utilises the above and draws a button appended to the control. But, I'm struggling with the correct way of adding the
event for the button click to the template.

Has anyone created a custom template with trigger events? Any help on this would be greatly appreciated.