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

Context Menu from radPane

2 Answers 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 01 May 2012, 08:50 PM
Whenever I add a radGridView to a radPane the radGridView seems to inherits the radPane's Context menu as its context menu.  If I right click on a gridView on a radPane it has the context menu of  floating, dockable, tabbed document, auto hide and hide and if I select one of them it will do that to the pane the grid is contained in. Even if I set the gridView context menu to null after InitializeComponent I still have the radPane context menu when I right click on the gridView. It does not do this for other controls on the radPane just the gridView.

How can I stop this from happening?
Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 03 May 2012, 10:03 AM
Hello Jim,

We are aware of the issue with the Context Menu showing in the content of the RadPane. As a workaround as you have figured out you can disable the Context Menu of the different elements. What we recommend is to do it on the stack panel (or similar element)  that you have as a content of the RadPane. I have attached a simple project, where I have disabled the Context Menu of the GridView ( also you can see how to disable it to the stack panel) and it works fine. Can you, please check it out and tell us if this works for you?

All the best,
Georgi
the Telerik team

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

0
Dev
Top achievements
Rank 1
answered on 03 May 2012, 06:25 PM
That will work for now. Eventually I will have separate context menu for the header and for the data rows but I will have to figure that one out later. Thanks for your help.
Tags
GridView
Asked by
Dev
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Dev
Top achievements
Rank 1
Share this question
or