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

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

    Thanks
  2. Nikolay
    Admin
    Nikolay avatar
    1803 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.

    Greetings,
    Nikolay
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top