This is a migrated thread and some comments may be shown as answers.

Right-click anywhere in RadGridView without displaying any context menus

1 Answer 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 27 Feb 2019, 02:54 AM

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

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 27 Feb 2019, 08:54 AM
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.
Tags
GridView
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or