-
Notifications
You must be signed in to change notification settings - Fork 729
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
Extremely slow/choppy rendering with columns outside viewport #2107
Comments
Do you have a lot of column renderers? Can you create a sample jsFiddle with the issue? |
I should be able to create one...and post one shortly. However, the below url doesn't work with fiddles - they keep throwing an error. Is there a URL that works?
Here is an example from the site that doesn't render: http://jsfiddle.net/api/post/jquery/2.1/ |
@vitmalina - here's a sample fiddle: https://jsfiddle.net/oLa2u16v/2/ Unfortunately it doesn't render at all. However, it is a copy of the entire code pasted below:
|
Even though the side scroll is gets better by adding |
It doesn't render on the fiddle. But the only difference I can see is the removal of the CSS. Is that it? The reason for the custom CSS is that some rows are color-coded and their overlaps makes it appear as one large row. Hence the addition of the border. There is a cell with a large text and hence the need to override the default CSS. Are these two really the cause of the slow down? |
As part of 2.0 effort, there will be a major refactor from tables to flex-grid. Let's revisit this after refactor. It will probably be within a month, as now I have lots of free time to do it. )) I hope to resolve all this issues. |
This doesn't fix the side scroll issue though - try scrolling "really" fast with a left "swipe" and you'll notice the lag and slow rendering... |
Got it. It is true that I did not work on this a particular issue, but it was related to speed improvements for virtual scrolling. I thought it could have been effected here too. |
Short description
Sluggish side scroll performance when number of columns exceed viewport width
What is current behavior
A quick side scroll can cause the column rendering to simply "fail" i.e., be rendered as a wide band without content.
What is desired behavior
Sidescroll performance should equal that of vertical scroll without lag or "mis-renderings", when there are more columns than the viewport width.
Steps to reproduce or sample
recordHeight: 50
Num Columns: 15
Per Column Width: 400px
Total records: 2000
Additional performance degradation: Although a previous blog post mentioned that 250K records take less than 1s to be sorted, this isn't true with the above situation. I have a measly 1200 records and the performance of sort takes more than a few seconds for anything over 1000 records. Beyond 2000 the system is unresponsive.
Browser
Latest version of Chrome as of Sept 2021: Version 94.0.4606.54 (Official Build) (x86_64)
The text was updated successfully, but these errors were encountered: