Hi,
I was stuck at a point where I need to assign a shortcut key which is stored in the database respective to a menu.
When I fetch the data the for the menu, I fetch all the details related to it, in a hierarchical manner and bind it to RadMenu DataSource.
Now my requirement is to assign the shortcut key to each RadMenuItem in the RadMenu, for this I thought of creating a CustomCommand using RoutedCommand, CommandBinding and KeyGesture. With this will create a MenuRoutedCommand and thus create a Command that will be assigned to each RadMenuItems command property.
But when i found the RadMenu items in loaded event, those items are not the RadMenuItem but the collection of Hierarchical object used to create the item. So, not able to assign Command as I was unable to get the RadMenuItem.
Please let me know how to assign Command in HierarchicalData source.
Or If there is anyother approach to assign shortcut keys dynamically to the RadMenuItem.
Please reply to it as soon as possible.
Thanks.
I was stuck at a point where I need to assign a shortcut key which is stored in the database respective to a menu.
When I fetch the data the for the menu, I fetch all the details related to it, in a hierarchical manner and bind it to RadMenu DataSource.
Now my requirement is to assign the shortcut key to each RadMenuItem in the RadMenu, for this I thought of creating a CustomCommand using RoutedCommand, CommandBinding and KeyGesture. With this will create a MenuRoutedCommand and thus create a Command that will be assigned to each RadMenuItems command property.
But when i found the RadMenu items in loaded event, those items are not the RadMenuItem but the collection of Hierarchical object used to create the item. So, not able to assign Command as I was unable to get the RadMenuItem.
Please let me know how to assign Command in HierarchicalData source.
Or If there is anyother approach to assign shortcut keys dynamically to the RadMenuItem.
Please reply to it as soon as possible.
Thanks.