Disable Right Click...

2 posts, 0 answers
  1. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 09 May 2011 Link to this post

    How to disable the right click function where...
    you mouse over your mouse to the pageview(DocumentWindow) Tab... right click.
    you will see the close, close all...

    May i know how to disable this function of right click?

    Regards
    Johnny
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 10 May 2011 Link to this post

    Hi Johnny,

    Thank you for writing.

    RadPageView does not have a context menu on its page items by default. I guess that you are talking about the tabs of the DocumentWindows of RadDock. If this is your case, you can remove the context menu from them by setting the AllowDocumentContextMenu property of the ContextMenuService to false:
    ContextMenuService menuService = this.radDock1.GetService<ContextMenuService>();
    menuService.AllowDocumentContextMenu = false;
     
    For more information about the ContextMenuService, please refer to this help article.

    I hope the provided information addresses your question. Should you have any other questions, do not hesitate to contact us.

    Greetings,
    Stefan
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top