Display ContextMenu in RadDock titlebar

2 posts, 0 answers
  1. iTools
    iTools avatar
    28 posts
    Member since:
    Jun 2007

    Posted 22 Apr 2009 Link to this post


    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?

  2. Petio Petkov
    Petio Petkov avatar
    825 posts

    Posted 24 Apr 2009 Link to this post

    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.

    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.
Back to Top