angular-ui / ui-grid

UI Grid: an Angular Data Grid
http://ui-grid.info
MIT License
5.39k stars 2.47k forks source link

Performance issues #4612

Open mparisi76 opened 8 years ago

mparisi76 commented 8 years ago

Hi, first off, great job on a great datagrid control. I'm running into issues when using more than one of these on a page at once. Does ui-grid support this scenario? Ultimately, I would have up to 10 datagrids on one page. Could this be an issue with page performance or in any other area? I see some oddness, like my page freezing up, right mouse button not working, etc..

Thanks.

Matt

sinntar commented 8 years ago

same issue here. any suggestion on this ??

PaulL1 commented 8 years ago

Usually when people put a lot of grids on a page they're putting them in a tab. The general rule for putting them on tabs is that you wrap an ng-if around the grid, and only render it if actually visible - one of the tutorials covers doing this I believe.

If you're not doing doing this in a tab, then you're probably setting up for difficulties, even more so if also on IE. The grid is pretty heavy weight - there's a hell of a lot of watchers, at a minimum one per cell, but often a lot more than that depending on what features you use. Multiply that by 10 and it starts getting scary.