Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
How to determine client-side if right-clicked row is selected
posted

I want to display a dynamic context menu where menu items are enabled/disabled depending on whether the row they right-clicked is selected.  What is the easiest way to do this without iterating through all the WebDataGrid rows?  What is the Javascript to disable WebDataMenu rows?

I am using the ClientEvents MouseUp event of the WebDataGrid 11.2.20112.2086.

Parents
  • 37874
    Verified Answer
    posted

    Hi KapAltDev,

    Thank you for posting in our forum.

    It seems that in order to check if a row is selected, you should iterate through the selected rows array. I created a sample with WebDataGrid and a context WebDataMenu. The menu items are enabled only if the clicked row is selected. Please refer to the attached sample and let me know if you have any questions.

    WDGContextMenu.zip
Reply Children