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

Customize ContextMenu of TabItem

5 Answers 92 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 2
Adam asked on 06 Jan 2009, 03:14 AM
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.

5 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Jan 2009, 11:52 AM
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.
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.
0
Accepted
Nikolay
Telerik team
answered on 07 Jan 2009, 02:00 PM
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.
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!
0
Nikolay
Telerik team
answered on 10 Jan 2009, 09:02 AM
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.
Tags
Dock
Asked by
Adam
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Adam
Top achievements
Rank 2
Share this question
or