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
    Admin
    Dimitar avatar
    2907 posts

    Posted 27 Feb 2019 Link to this post

    Hello Ricardo,

    You can use the following approach for this:
    public RadForm1()
    {
        InitializeComponent();
      
        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.

    Regards,
    Dimitar
    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