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

Prevent select-row with right click for checkbox-only rows with context menus

I have a Vuejs 3.2 application with ej2-vue-grids 20.2.36, and I my grid has a checkbox selection. That works so far, I have to explicitly check the box to select a row, clicking somewhere else doesn't do anything.

Now when I add a context menu, I have the problem that when I right click on a row, the menu opens, but the row also gets selected, which is not what I want. How can I prevent that? 




1 Reply

JC Joseph Christ Nithin Issack Syncfusion Team February 6, 2023 06:19 PM UTC

Hello Verena,


Thank you for reaching out to Syncfusion support.


We understand that you are encountering an issue where the row gets selected when you open the context menu in EJ2 Grid. We'd like to inform you that this is the default behavior of the EJ2 Grid. When you open the context menu, the popup is opened based on the selected row, and the actions in the context menu are performed based on that row. This design allows you to easily perform actions on the desired row.


If you need further assistance or clarification, please feel free to reach out to us. Our team would be happy to assist you.


Best regards,

Joseph I.


Loader.
Up arrow icon