Programmatically open RadMenu

3 posts, 0 answers
  1. Carel Lotz
    Carel Lotz avatar
    11 posts
    Member since:
    Aug 2009

    Posted 23 Jan 2014 Link to this post

    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. Rosen Vladimirov
    Rosen Vladimirov avatar
    640 posts

    Posted 24 Jan 2014 Link to this post

    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.

    Rosen Vladimirov
    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 >>
  3. Carel Lotz
    Carel Lotz avatar
    11 posts
    Member since:
    Aug 2009

    Posted 25 Jan 2014 Link to this post

    Thanks - that did the trick.
Back to Top