open submenu automatically

2 posts, 0 answers
  1. robert
    robert avatar
    27 posts
    Member since:
    Aug 2011

    Posted 17 Oct 2011 Link to this post

    hello, i have one main menuitem with submenuitems. how can i open / expand the submenu automatically on
    right mouse click? the property issubmenuopen is readonly.
    thanks for help ...

  2. Yana
    Yana avatar
    4604 posts

    Posted 18 Oct 2011 Link to this post

    Hello Robert,

    RadMenu doesn't provide such a property. The only workaround that I can suggest is to get the RadMenuItemAutomationPeer for this RadMenuItem and then invoke its Click method like this:

    RadMenuItemAutomationPeer peer = FrameworkElementAutomationPeer.CreatePeerForElement(rootMenuItem) as RadMenuItemAutomationPeer;
    if (peer != null)

    where rootMenuItem is the item that needs to be expanded.

    Hope this helps.

    Best wishes,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top