TreeView and ContextMenu

2 posts, 0 answers
  1. Marcel
    Marcel avatar
    21 posts
    Member since:
    Jun 2008

    Posted 31 May 2009 Link to this post

    I have created a TreeView with a contextMenu. The contextMenu is not shown when I press the right mouse button. I took the following example as a template for my code:

    http://demos.telerik.com/silverlight/#TreeView/AddRemoveDisable

    By the way: I see nothing in the code where the actual ContextMenu is shown. Something like ContextMenu.Show()
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 01 Jun 2009 Link to this post

    Hi Marcel,

    You need to set the Silverlight plug-in in windowless mode:
    - In your aspx, you should set:
    <asp:Silverlight Windowless="true" runat="server" ...  

    - If you are using HTML object, you should add this parameter:
    <param name="windowless" value="true" /> 

    Please, check this blog post, that might be helpful:
    http://blogs.telerik.com/valerihristov/posts/09-06-01/reusing_and_customizing_a_single_contextmenu_on_a_treeview_with_radcontrols_for_silverlight.aspx

    Sincerely yours,

    Valeri Hristov
    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