I'm looking for recommendations for jqgrid to add a large dataset from a local source. Right now, there's a simple loop:
grid.clearGridData();
for(var i = 0; i < data.length; i++)
{
grid.addRowData(i+1, data[i]);
}
grid.trigger(”reloadGrid”);
And on some larger data sets, this causes the browser to display the “javascript is using too many resources…quit/continue” message in IE and FF, usually after several “Continues” everything is fine. This is for data sets of ~2000 rows.
I can break this up into several chunks with setTimeout, but that feels kludgy.
Using version 3.3 of jqgrid.