I can prevent the context menu from showing for a docked DockPanel by wiring to the DockContextMenu.DropDownOpening event and setting e.Cancel to true.
The problem is that DropDownOpening is only called when the panel is docked. When it's floating I can't figure out how to disable the context menu.
3 Answers, 1 is accepted
0
Julian Benkov
Telerik team
answered on 06 Jun 2008, 01:18 PM
Hi Sedney,
Thank you for writing.
I did tests with DockPanel and its DockContextMenu and the DropDownOpening event fires for the Dock and Floating states.
It appears the issue has something to do with the specifics of your scenario. Please send us a sample application to help us reproduce the issue locally.
Sidenote/tangent/bug (not really a problem for me, just passing it along) If the tabstrip is not set to visible, changing the panel's text does not actually take effect. So if we're hiding the tabstrip and want to change the title of the panel we have to make the strip visible then invisible again (using 2007 Q3) to get the title to refresh. I may have even mentioned this one before not sure... oh well... thanks for the help.
0
Julian Benkov
Telerik team
answered on 09 Jun 2008, 10:41 AM
Hello Sedney,
Thank you for the reported issue. I found a problem when DockPanel DockState is changed to Floating and then set its Text. The fix will be available for next our release.