You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that ui-grid dataWatchFunction rebuilds all columns and pre-compiles cell templates each time data is changed (see: ui-grid.js:109).
My understanding is that after the columns/cell templates have been built/compiled once then they do not need to be built/compiled again unless the column definitions change in any way.
There's already a watcher on the column definitions (see: columnDefsWatchFunction) that does this job already.
From my experiences, not building/compiling columns/cell-template each time data changes can improve performance significantly for grids that update data often.
Question: Is there any possible reason why columns need to be built each time data changes?
If not, i'm more than happy to submit a pull request to add this improvement!
Thanks
The text was updated successfully, but these errors were encountered:
Hi, in converse to this issue, i am binding variable length data, so i am binding columns dynamically and also i have conditional styles and icons are being rendered on based the cell data. When, i rebind the data (which is different), the data is changing but not cell styles and icons. please let me know how to resolve this issue.
Hi,
I noticed that ui-grid dataWatchFunction rebuilds all columns and pre-compiles cell templates each time data is changed (see: ui-grid.js:109).
My understanding is that after the columns/cell templates have been built/compiled once then they do not need to be built/compiled again unless the column definitions change in any way.
There's already a watcher on the column definitions (see: columnDefsWatchFunction) that does this job already.
From my experiences, not building/compiling columns/cell-template each time data changes can improve performance significantly for grids that update data often.
Question: Is there any possible reason why columns need to be built each time data changes?
If not, i'm more than happy to submit a pull request to add this improvement!
Thanks
The text was updated successfully, but these errors were encountered: