Hi,
I have a radgrid using the the GridClientSelectColumn with AllowMultiRowSelection = true. The table is rendered with a checkbox in the header to allow a user to select/deselect all rows with one click.
I've wired up the grid using OnRowSelected/OnRowDeselected, so that any selection changes cause some code to run where I do some summarization calculations for display.
This works great, when the user is manually checking/unchecking a row themselves, but in a scenario I'm testing I have 100 rows, and the user clicks the Select all checkbox. This causes the grid to trigger the OnRowSelected event 100 times, which is taking too much time (and I get a slow script error in IE 8).
Is there any easy way to detect when the Select All checkbox is checked or unchecked, and handle this appropriately, so that my summarization code is only called once, not on every OnRowSelected/OnRowDeselected which is triggered?
If not, I may have to hide the original select all checkbox, and recreate this functionality myself, but I'd rather not.
Someone else had this same sort of issue here: http://www.telerik.com/community/forums/aspnet-ajax/grid/detect-final-onrowselected-and-onrowdeselected.aspx
but the solution doesn't work for me, as I need to do the summary on every row select/deselect...
Thanks,
Rich
I have a radgrid using the the GridClientSelectColumn with AllowMultiRowSelection = true. The table is rendered with a checkbox in the header to allow a user to select/deselect all rows with one click.
I've wired up the grid using OnRowSelected/OnRowDeselected, so that any selection changes cause some code to run where I do some summarization calculations for display.
This works great, when the user is manually checking/unchecking a row themselves, but in a scenario I'm testing I have 100 rows, and the user clicks the Select all checkbox. This causes the grid to trigger the OnRowSelected event 100 times, which is taking too much time (and I get a slow script error in IE 8).
Is there any easy way to detect when the Select All checkbox is checked or unchecked, and handle this appropriately, so that my summarization code is only called once, not on every OnRowSelected/OnRowDeselected which is triggered?
If not, I may have to hide the original select all checkbox, and recreate this functionality myself, but I'd rather not.
Someone else had this same sort of issue here: http://www.telerik.com/community/forums/aspnet-ajax/grid/detect-final-onrowselected-and-onrowdeselected.aspx
but the solution doesn't work for me, as I need to do the summary on every row select/deselect...
Thanks,
Rich