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

DocumentHost Tab Context Menu

3 Answers 56 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Nick Anderson
Top achievements
Rank 1
Nick Anderson asked on 19 Nov 2009, 07:38 PM
How can I set a context menu when I right click on the tab of a document in the DocumentHost?

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 23 Nov 2009, 11:18 AM
Hi Nick,

The tabs at the DocumentHost already have context menu associated to them. Its items are bound to the MenuCommands collection of the RadPane control.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Nick Anderson
Top achievements
Rank 1
answered on 30 Nov 2009, 05:27 PM
I tried to use the MenuCommands Collection but it seems I can't get it quite right, becuase I still could not get an item onto the context menu.

I found an example project in the silverlight forum and tried to follow that by creating a custom class that inherited the MenuCommand class, and then adding that to the MenuCommands Collection, but I could not get it to work.

Any ideas or a quick example on how to do this?

Nick
0
Miroslav Nedyalkov
Telerik team
answered on 01 Dec 2009, 02:17 PM
Hi Nick,

You could use the CustomMenuCommand class or to inherit from the MenuCommand class. Please find the attached example - it demonstrates how to add and remove commands using the CustomMenuCommand class.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Docking
Asked by
Nick Anderson
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Nick Anderson
Top achievements
Rank 1
Share this question
or