Hi all,
Just wondering if there is a way to add some custom data (in this case an ID) against a RibbonBarMenuItem?
Basically what I am doing is creating the menu from items in a database table - what I want to be able to do is grab the ID in the MenuItemClick event and then execute the correct code accordingly.
Obviously I could do a lookup on the text itself but this is not ideal and there could potentially be items with the same text so not really an option. I guess I could inherit from the RibbonBarMenuItem and create a custom control with an ID field - would this be the correct solution? or am I missing something obvious?
Any help would be appreciated.
Regards
Kevin
Just wondering if there is a way to add some custom data (in this case an ID) against a RibbonBarMenuItem?
Basically what I am doing is creating the menu from items in a database table - what I want to be able to do is grab the ID in the MenuItemClick event and then execute the correct code accordingly.
Obviously I could do a lookup on the text itself but this is not ideal and there could potentially be items with the same text so not really an option. I guess I could inherit from the RibbonBarMenuItem and create a custom control with an ID field - would this be the correct solution? or am I missing something obvious?
Any help would be appreciated.
Regards
Kevin