Hi All,
I'm developing a UI framework and have an event handler defined in an interface so that all User controls / content pages can implement functionality through standard defined methods (interface definition).
I have a RadToolbar in my ui framework and need to assign its event handler for the button click event in code behind so that each user control can re-define the inner workings of the event based on which buttons have been dynamically added to the toolbar by that page / user control.
I can get a reference to the toolbar and dynamically add buttons to it no problem, However when i go to hook up an event handler vs 08 complains.
Using the toolbar.ButtonClick += new EventHandler(addresof Event_Handler_Method) doesn't seem to work.
Anyone have any ideas as to how I can accomplish this programmatically or another syntax I can use that works with RadToolBar? Or am I missing something and doing this entirely incorrectly?
Thanks,
SK
I'm developing a UI framework and have an event handler defined in an interface so that all User controls / content pages can implement functionality through standard defined methods (interface definition).
I have a RadToolbar in my ui framework and need to assign its event handler for the button click event in code behind so that each user control can re-define the inner workings of the event based on which buttons have been dynamically added to the toolbar by that page / user control.
I can get a reference to the toolbar and dynamically add buttons to it no problem, However when i go to hook up an event handler vs 08 complains.
Using the toolbar.ButtonClick += new EventHandler(addresof Event_Handler_Method) doesn't seem to work.
Anyone have any ideas as to how I can accomplish this programmatically or another syntax I can use that works with RadToolBar? Or am I missing something and doing this entirely incorrectly?
Thanks,
SK