Right-click anywhere in RadGridView without displaying any context menus

2 posts, 0 answers
  1. Ricardo
    Ricardo avatar
    22 posts
    Member since:
    Dec 2018

    Posted 26 Feb 2019 Link to this post

    Dear All,

    I have a problem.

    When I right-click anywhere in RadGridView, I don't want it to display any context menus.

    What should I do?

    Is this possible?

    Best wishes

  2. Dimitar
    Dimitar avatar
    2949 posts

    Posted 27 Feb 2019 Link to this post

    Hello Ricardo,

    You can use the following approach for this:
    public RadForm1()
        radGridView1.ContextMenuOpening += RadGridView1_ContextMenuOpening;
    private void RadGridView1_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
        e.Cancel = true;

    I hope this will be useful. Let me know if you have additional questions.

    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top