Scrolling large data set of 1.000 rows, causes flickering
Using release candidate 3.0.0-rc.12. The grid has drawing issues when using the scrollbar in combination with large data set.
ui-grid-canvas, has a small percentage of hidden rows. 5% top and 5% at the bottom, so the viewpoint is showing 90% of the rows. Is it possible to increase the size of the canvas? Say 80% hidden. This will probably solve my case.
virtializationThreshold is the property you're looking for in gridOptions (refer line 300 of GridRenderContainer.js). I don't recall what this value is - I thought it might be a percentage (i.e. 0.2 for 20%), but not certain. This value needs to be documented in the ngdoc.
Actual I think excessRows is the one he wants. On Oct 11, 2014 1:15 PM, "Paul" [email protected] wrote:
virtializationThreshold is the property you're looking for in gridOptions (refer line 300 of GridRenderContainer.js). I don't recall what this value is - I thought it might be a percentage (i.e. 0.2 for 20%), but not certain. This value needs to be documented in the ngdoc.
— Reply to this email directly or view it on GitHub https://github.com/angular-ui/ng-grid/issues/1779#issuecomment-58758982.
Could you give me a brief description of what virtualizationThreshold does (it's in options so I presume it's intended to be user tuneable), and maybe excessRows too, and I'll add them both into the documentation? Thanks,
I played a bit with scrollThrottle and excessRows. It didn't solve the problem.
The issue is clearly visible in http://ui-grid.info/docs/#/tutorial/402_GridIsScrolling Scroll fast up and down with the scrollbar.
It appears that for each row, the contents is being deleted and reinserted. Why not reuse the column cells, when scrolling?
It is related to https://github.com/angular-ui/ng-grid/issues/1029
There is work underway on reusing the column cells. There are issues with cellTemplates and headerTemplates, although I suspect those largely relate to horizontal scrolling. But I believe that there are some features that have difficulty also in reusing elements for vertical scrolling.
I don't think it would be a problem, otherwise provide an option to fallback in the current render implementation..
Can this be tagged as bug.
The difference between the old ui-grid and the new implementation is huge.
Old (smooth at 200.000 lines lines with scrolling) http://plnkr.co/edit/8fuIJr
New (white screen at 200.000 lines with scrolling) http://plnkr.co/edit/Kwz1SQJBrPubIMxl1VaP
Hopefully it is not architecture mistake in the core design.
I think this is now resolved. Both scroll smoothly. On my Macbook / Chrome, the ui-grid is a bit slower, but not flickery. I think it's just the acceleration settings - interestingly earlier it scrolled too fast on OSX, not sure why it's now a little slow.
Is there something that changed for ui-grid to struggle to keep up while ng-grid is fine? The ng-grid example seems to work fine so there's surely something that's causing the issue in ui-grid rather than just acceleration settings?
Should I open a new issue about this or is this already known?
I think that's an unfair comparison, the ng-grid plunker has only 4 columns and no additional features being used (such as edit etc). Compare the large dataset tutorial: http://ui-grid.info/docs/#/tutorial/404_large_data_sets_and_performance, which flickers a little, but is generally good.
I you look at the performance monitoring in chrome the time is all disappearing into angularjs, mostly directive compilation. There's not a huge amount we can do about that.
I am seeing similar performance in the large dataset tutorial to the ui-grid plunker - especially on mobile.
The ui-grid plunker is also only using 4 columns and no additional features unless I'm missing something that's making the comparison unfair.
Ah, then I was probably comparing to the similar discussion on another issue which had 100 columns x 100 rows and all features enabled.
I suspect some of the lack of interest comes from "Hopefully it is not architecture mistake in the core design." which isn't the kind of comment that makes people who've spent 1-2 years building this happy.
Hello, I'm experiencing the same problem on a v3.1.1 grid of about 20 columns and about 1800 rows, edit enabled on the last four columns, cell navigation. I see the issue has been closed but working it around with either excessRows or virtualThreeshold makes both the initial rendering and vertical scrolling very slow. Is there something else I could try? Thank you, Salvo