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.
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.
Thanks Nikolay! I appreciate your help with this complex issue. Thanks for going the extra mile and providing full code - it works great!
Hello KapAltDev,
I'm glad to hear that. Feel free to contact me if you have any other questions.