What is the best way to go about customizing what options appear when you right click on a tab in a docking manager? I know its possible to show/hide the context menu via the TdiContextMenuVisible property. Ultimately what I want to do is remove the ability of users to create their own tab groups. I like the "Close All Tabs Except for this" option and would like for that to remain.
Thanks in advance.
Thanks in advance.
5 Answers, 1 is accepted
0
Hi Adam,
Thank you for the question.
Please refer to the following Knowledge Base article regarding the topic of customizing the context menus in RadDock: Customizing ContextMenus in RadDock.
I hope this helps. If you need further assistance, feel free to contact me.
Kind regards,
Nikolay
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thank you for the question.
Please refer to the following Knowledge Base article regarding the topic of customizing the context menus in RadDock: Customizing ContextMenus in RadDock.
I hope this helps. If you need further assistance, feel free to contact me.
Kind regards,
Nikolay
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Adam
Top achievements
Rank 2
answered on 06 Jan 2009, 12:42 PM
The kb article was helpful, however in my situation I am using the dockingManager as an MDI parent and don't have any dock panels on it. Is there another way to access the drop down menu other than through the dockpanel? Or some way to get the dockpanel that the tabbed documents are on?
Thanks for the awesome support.
Thanks for the awesome support.
0
Accepted
Hi Adam,
The approach used in the article is applicable to DocumentPanes as well. In the example provided, just replace the DockPanel instances with DocumentPane instances.
Contact me, if you need further assistance.
Sincerely yours,
Nikolay
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
The approach used in the article is applicable to DocumentPanes as well. In the example provided, just replace the DockPanel instances with DocumentPane instances.
Contact me, if you need further assistance.
Sincerely yours,
Nikolay
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Adam
Top achievements
Rank 2
answered on 07 Jan 2009, 04:56 PM
I didn't really understand what the GetDefaultItem("") call was doing in the example, however I figured out that I can just loop through the items collection of the DockContextMenu within the DropDownOpening call and hide the items I want. This works exactly how I expect.
Thanks for your help!
Thanks for your help!
0
Hi Adam,
I am glad to hear that I was of help.
As to the GetDefaultItem method, its purpose its just to return a DockMenuItem by a string key.
Sincerely yours,
Nikolay
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I am glad to hear that I was of help.
As to the GetDefaultItem method, its purpose its just to return a DockMenuItem by a string key.
Sincerely yours,
Nikolay
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.