Context Menu

2 posts, 0 answers
  1. Voss Grose
    Voss Grose avatar
    81 posts
    Member since:
    Sep 2012

    Posted 14 Jul 2009 Link to this post

    1. Can a context menu be attached/launched from anywhere/any control? Say I have a custom control...can I show the context menu from it?

    2. What about the Right Click...does that only work from a menu control itself or is there a way to wire that up as well from a custom user control?

    Basically I want to PopUp a context menu from one of my custom user controls and ideally would do it from a right click.

  2. Hristo
    Hristo avatar
    832 posts

    Posted 15 Jul 2009 Link to this post

    Hi Voss Grose,

    RadContextMenu is separate control. It can be attached to any UIElement using the RadContextMenu.ContextMenu property. You can do this in XAML or in code (using the RadContextMenu.SetContextMenu method). Further you can set event name property on RadContextMenu to specify on which event the Menu will open. This can be any event on you control. You can set it to empty string and open the menu manually using the IsOpen=true property.
    RightClick is the default event for RadContextMenu but it requires that your Silverlight plug-in is in Windowless mode.
    You can find more examples from our QSF:

    Let us know if you need more information.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top