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
100
Programmatically determining when the user shift-clicks a selection checkbox
posted

I am writing custom code for the rowSelectionChanging and checkBoxStateChanging events to handle selection when the user clicks rows in the grid and having trouble determining when the user wants to select multiple rows by holding down the SHIFT key.  When the row itself is clicked, I can tell that the user has SHIFT held down because the "ui" object parameter passed into the rowSelectionChanging event has startIndex and endIndex properties set to the first selected row and the row the user is shift-clicking on.  However, when the user holds SHIFT down and clicks a checkbox, the equivalent checkBoxStateChanging event and its equivalent ui object do not have those same startIndex and endIndex properties for me to examine.  I browsed around the API documentation as well as the object itself in a JavaScript debugger and couldn't find properties to help handle programmatic selection of rows in checkBoxStateChanging as is possible in rowSelectionChanging.

Is there a way to handle multiple row selection via the SHIFT key in the checkBoxStateChanging event?