Skip to content

buildColumns / preCompileCellTemplates called each time grid data is changed #4386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
oriondean opened this issue Sep 17, 2015 · 1 comment
Closed

Comments

@oriondean
Copy link
Contributor

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

@badri77
Copy link

badri77 commented May 25, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants