I'm trying to populate RadDropDownButton items in run-time and create a generic handler for their Click event. Through the examples in the documentation I can create the RadMenuItem's dynamically. However, I can't seem to find any documentation on how to get to the Click event of the RadMenuItems.
To give a bit of an example of what I want to achieve I did something similar with a normal windows menu where the sub menu items were dynamic.
So the sub menu items were set up using
|MI_Reports.MenuItems.Add(items(i).Name, New System.EventHandler(AddressOf openReport_Click)) |
and their Click events are handled by something along these lines
|Private Sub openReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click |
Hopefully that makes sense to someone. Any hints or pointers of how else I could do this would be greatly appriciated.