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
0
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.
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
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
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.
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.