ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

ngGrid data clearing and multiple runs taking more time to render results

Open ivaris opened this issue 12 years ago • 3 comments

I am seeing ngGrid is fast on first run and response gets worse on subsequest runs. i tried to empty the grid data by myData = [] on every run. but this statetmen also taking time. what is the clean way to empty grid data before getting the new data?

ivaris avatar May 14 '14 21:05 ivaris

myData.length = 0; maybe?

junkoro avatar Jun 12 '14 05:06 junkoro

I think resetting the gridOptions.data, for example:

$scope.gridOptions.data = 'myData';

Would be the most likely way to have success. Having said that, the 3.0 version has substantial performance improvements. It may be worth looking at 3.0 to resolve your issues.

PaulL1 avatar Sep 08 '14 09:09 PaulL1

More information requested on a relatively old issue, and no further comment for 2 weeks, assuming that issue is resolved.

PaulL1 avatar Sep 21 '14 00:09 PaulL1