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

Disable Right Click...

1 Answer 89 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Johnny
Top achievements
Rank 2
Johnny asked on 09 May 2011, 05:07 AM
How to disable the right click function where...
you mouse over your mouse to the pageview(DocumentWindow) Tab... right click.
you will see the close, close all...

May i know how to disable this function of right click?

Regards
Johnny

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 May 2011, 04:59 PM
Hi Johnny,

Thank you for writing.

RadPageView does not have a context menu on its page items by default. I guess that you are talking about the tabs of the DocumentWindows of RadDock. If this is your case, you can remove the context menu from them by setting the AllowDocumentContextMenu property of the ContextMenuService to false:
ContextMenuService menuService = this.radDock1.GetService<ContextMenuService>();
menuService.AllowDocumentContextMenu = false;
 
For more information about the ContextMenuService, please refer to this help article.

I hope the provided information addresses your question. Should you have any other questions, do not hesitate to contact us.

Greetings,
Stefan
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
PageView
Asked by
Johnny
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or