Close ContextMenu when another ContextMenu is opened

6 posts, 0 answers
  1. Michael Wolfe
    Michael Wolfe avatar
    4 posts
    Member since:
    Jun 2007

    Posted 20 Dec 2009 Link to this post

    In your GridView / HeaderContextMenu example, when you right click on one column header then right click on a different column header there will be two context menus open at the same time. How can I make it so that right-clicking on the second header cell will make the context menu from the first clicked header cell close when the second context menu opens?
  2. simeon
    simeon avatar
    12 posts
    Member since:
    Sep 2008

    Posted 22 Dec 2009 Link to this post

    I was looking to do the same thing but with a RadTreeView with templated nodes with different context menus.  When you right click a node below the previous context menu is still shown.  I tried to save the context menu that was last opened in a generic opened event and set the visibility of the previous show context but that causes subsequent right clicks to show nothing?!? 
  3. DevCraft banner
  4. simeon
    simeon avatar
    12 posts
    Member since:
    Sep 2008

    Posted 22 Dec 2009 Link to this post

    ooops double post.
  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 23 Dec 2009 Link to this post

    Hello guys,

    Are you using Silverlight 4? If so the second context menu is the default Silverlight context menu.
    We are aware of this issue and the fix will be available with the next Latest Internal Build.

    If you are using Silverlight 3 please send us sample project demonstrating the problem.

    Best wishes,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Michael Wolfe
    Michael Wolfe avatar
    4 posts
    Member since:
    Jun 2007

    Posted 23 Dec 2009 Link to this post

    I'm using Silverlight 3. The problem can be demonstrated with your GridView example from your Silverlight Demos. Using the GridView / Context Menus / Context Menu for Header Cells demo. First right-click on the "Name" header cell and the conext menu opens, then move over and right-click on the "Date" header cell without clicking on the first context menu and a second identical context menu opens. This is in the November 3 2009 release of the Q3 2009 controls. I just checked your site's live demos and it seems to work right using the December 8, 2009 build. However, I'm using the December 11, 2009 build and in my code the multiple menus are showing up. Did you change the code in your site's version of the demos without changing the code listed in the demo. I can't see a difference in the code between the two versions and I've modeled my code after your listings, but I get the multiple menus with the Dec 11 build.

     
  7. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 23 Dec 2009 Link to this post

    Hi Michael Wolfe,

    There was a problem in our code that we have fixed. Could you update your project with the latest version or at least 2009 Q3 Service Pack 1?

    Let us know if the problem still exist.

    Best wishes,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
DevCraft banner