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

Context menu shown only on header

2 Answers 56 Views
Docking
This is a migrated thread and some comments may be shown as answers.
RoxanaC
Top achievements
Rank 1
RoxanaC asked on 13 Jul 2010, 08:04 AM
Hello!
The RadPane's context menu is useful in many scenarios and I would like to keep this feature in my application, but I need to limit that context menu to appear only when I right-click the header or when I click the small arrow in the upper right corner of the RadPane, because in my case, the RadPane content consist in a WrapPanel having some custom controls that treat their own right-click event ( so I don't want the RadPane to show it's context menu when I right-click inside it )
Is this possible?

Thank you!
RoxanaC

2 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 13 Jul 2010, 12:12 PM
Hello Roxana,

 You could handle the MouseRightButtonUp event of the root content element of each pane. This will stop the Menu from opening. Please refer to the attached example.

Best wishes,
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
RoxanaC
Top achievements
Rank 1
answered on 14 Jul 2010, 07:13 AM
That worked just fine.

Thank you Miroslav!

Tags
Docking
Asked by
RoxanaC
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
RoxanaC
Top achievements
Rank 1
Share this question
or