This is a migrated thread and some comments may be shown as answers.

Programmatically open RadMenu

2 Answers 96 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Carel Lotz
Top achievements
Rank 1
Carel Lotz asked on 23 Jan 2014, 03:16 PM
We have data capturers using our application and we need to give them an additional keyboard shortcut to open up the RadMenu dropdown.  Once the dropdown is open, the current keyboard support using the arrow keys are fine.  It seems like in WPF you can assign keyboard shortcuts to open up the top level items, but not in Silverlight due to the platform limitations.  I've searched everywhere to see what would be required to get the toplevel RadMenuItem to open up using C# code.  I've tried setting the IsCurrent property on the MenuItem model that the Menu is binding against, but to no avail.

From looking at the code through Reflector I see a few Open and Close methods but these are all internal.  Is there a way to get this accomplished in code?

2 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 24 Jan 2014, 09:33 AM
Hello Carel,

You can use RadMenuItem's IsSubMenuOpen property and set it to true. If the item has children, its dropdown will be opened.

I've prepared a sample project demonstrating the usage of the property. Please give it a try and inform us in case you have any problems or concerns.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Carel Lotz
Top achievements
Rank 1
answered on 25 Jan 2014, 08:38 AM
Thanks - that did the trick.
Tags
Menu
Asked by
Carel Lotz
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Carel Lotz
Top achievements
Rank 1
Share this question
or