This is a migrated thread and some comments may be shown as answers.

Close ContextMenu when another ContextMenu is opened

5 Answers 56 Views
This is a migrated thread and some comments may be shown as answers.
Michael Wolfe
Top achievements
Rank 1
Michael Wolfe asked on 20 Dec 2009, 07:12 PM
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?

5 Answers, 1 is accepted

Sort by
0
simeon
Top achievements
Rank 1
answered on 22 Dec 2009, 03:40 PM
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?!? 
0
simeon
Top achievements
Rank 1
answered on 22 Dec 2009, 03:40 PM
ooops double post.
0
Hristo
Telerik team
answered on 23 Dec 2009, 07:53 AM
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.
0
Michael Wolfe
Top achievements
Rank 1
answered on 23 Dec 2009, 08:31 AM
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.

 
0
Hristo
Telerik team
answered on 23 Dec 2009, 11:37 AM
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.
Tags
Menu
Asked by
Michael Wolfe
Top achievements
Rank 1
Answers by
simeon
Top achievements
Rank 1
Hristo
Telerik team
Michael Wolfe
Top achievements
Rank 1
Share this question
or