We are using infragistics v10.3 webdatagrid which has 76 columns & 3000 rows.
We have check all checkbox in the header template. On its selection system is throwing following error(Stop running this script?)
For check all checkbox in the header template we have written following javascript function:
function CheckAllItems(checkbox) {
var grid = $find("<%gridname %>");
for (var i = 0; i < grid.get_rows().get_length(); i++) {
var row = grid.get_rows().get_row(i);
var cell = row.get_cell(0);
var element = cell.get_element();
element.children[0].checked = checkbox.checked;
if (checkbox.checked)
grid.get_behaviors().get_selection().get_selectedRows().add(row);
else
grid.get_behaviors().get_selection().get_selectedRows().remove(row);
}
We suspect the below lines are taking time in the function-
Kindly suggest an alternative.
Hello,how can i freeze rows in infragistics.excel v5.3??
Thanks & Regards
Ryan
Hello Nilesh ,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Hello nileshsaw ,
Thank you for posting in our forum.
Indeed there would be a delay if you’re selecting a very large amount of rows.
When you select a row all of its cells will need to be retrieved and the selected ccs class name applied to them.
So if you have 76 columns & 3000 rows that would make 228 000 cells that will need to be retrieved from the DOM and have a className applied to them so that they’ll appear selected. Depending on the browser’s engine retrieving so many cells and applying a class to them may take a large amount of time.
In order to improve the performance you could either use the VirtualScrolling feature or the Paging feature which will limit the amount of cells loaded on a page initially.
Let me know if you have any questions.
Developer Support Engineer II
Hi Support Team,
Any updates on above mentioned WebDataGrid issue?
Thanks & Regards,
Nilesh Sawant