Raddock Document Tool

2 posts, 0 answers
  1. Tim
    Tim avatar
    7 posts
    Member since:
    Oct 2012

    Posted 11 Jul 2012 Link to this post

    I have a problem with raddock .

    How can I disable the activation of the menustrip, in other words, disable the  function.

    Please refer to the attached picture showing this problem.

  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 13 Jul 2012 Link to this post

    Hello Tim,

    In order to achieve your requirement, you should employ the ContextMenuService as shown below:
    ContextMenuService menuService = this.radDock1.GetService<ContextMenuService>();
    menuService.ContextMenuDisplaying += new ContextMenuDisplayingEventHandler(menuService_ContextMenuDisplaying);
    void menuService_ContextMenuDisplaying(object sender, ContextMenuDisplayingEventArgs e)
        e.Cancel = true;

    I hope this helps.

    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top