We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Only show context menu when right click on a column

Hello,

I have a columnchart with a contextmenu (running in vb .net). I only want to show the contextmenu when the user right clicks with the mouse postitioned above a column. How do I figure out if I right clicks on a column and not the area outside the columns in the chart?

Best regards

//Mariana

1 Reply

AD Administrator Syncfusion Team October 12, 2006 12:24 PM UTC


Hi Mariana,

Using ChartRegionClick Event with e.Region.IsChartPoint as condition , it is possible to show the context menu only on a column in the chart not on the other area of a chart.

But it is not currently possible to show the menu with Right mouse button clicked.

I will create a feature request to implement the above.

Please try the attached sample which helps you to display the menu with left mouse button pressed.

Thank you for your continued interest in Syncfusion products.

Regards,
Jaya

ContextMenuVB.zip

Loader.
Live Chat Icon For mobile
Up arrow icon