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

Display ContextMenu in RadDock titlebar

1 Answer 81 Views
Dock
This is a migrated thread and some comments may be shown as answers.
iTools
Top achievements
Rank 1
iTools asked on 22 Apr 2009, 09:45 PM
Hi

I want to create a dashboard interface a la Google such that the user can click the CustomCommand button in the titlebar of a RadDock and display a RadContextMenu to set custom options.  I've been trying to adapt the tutorial at http://www.telerik.com/support/kb/aspnet-ajax/window/adding-a-custom-button-to-radwindow-titlebar.aspx

Unfortunately I'm striking problems because the commands ClientOnClick event doesn't supply the mouseClickEventArgs that ContextMenu requires.

Without this, the ContextMenu cannot call $Telerik.CancelRawEvent and so the menu disappears immediately after it's shown.

I've also investigated setting the ContextMenu's ControlTarget to be the CustomCommand's ID but it doesn't seem to support this property!

What is the best way of achieving this?

Thanks

1 Answer, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 24 Apr 2009, 06:46 AM
Hi jan fischer,

I created a simple example which illustrates how to show RadContextMenu once a RadDock's custom command is clicked. After that you could change RadDock's title by pressing one of the Menuitems.
Let us know if you have any other questions.

Regards,
Petio Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
iTools
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Share this question
or