TreeGird with Virtualization
Hi support team,
I got performance issues when expanding child (please take a look at the bottom image) so I tried to improve the performance by applying Virtualization, but I got 4 issues during applying the virtualization for treegrid component to improve the performance. I attached my example code.
I would like to summary a bit what I did: I apply the virtualization for treegrid by enabling the setting EnableVirtualization and fixed Heigh. The treegrid also apply the pagination with custom "load more" button
Please help me clarify as well as provide the solution for each of issue:
- With all configurations on attached example code, it always displays scroll horizontal on the right of treegrid, and when I scroll it, it makes all the display items flick and display in wrong position (display at the middle of the tree). It should not have a scroll and all displayed items should always in top
- From what I see from the demo in syncfusion https://blazor.syncfusion.com/demos/tree-grid/virtual-scrolling?_ga=2.161887038.365228362.1627436268-544452080.1621238505 the grid is somehow has a delay around 500ms to load new data when I scroll to new position (makes me feel like the displayed items are jerky/flick). Is it the correct behavior? Is there any change to prevent it? Make it smoother?
- In my real implementation for my real project. With the same configuration for treegrid, I got the message " No records to display" when I set the PageSize is 0 or 10 or 12,.... It only display the data with PageSize = 2. Is there any configuration should I take a look/need adjustment?
- Even if I only use virtualization for treegrid without apply paging. The lagging/flick and some unexpected behavior (scroll down to bottom - empty items display) happen. And The IMPORTANT THING is the performance have not been improved, I got a delaying around 2-3 second when I try to expand/collapse the folder with the tree structure like below (my real tree have around 700 records which is used to build the tree structure like the image below)
Attachment: SyncfusionBlazorApp1_ee300805.zip
- The page size provided must be two times larger than the number of visible rows in the datagrid. If the page size is failed to meet this condition then the size will be determined by TreeGrid. So we suggest you to increase the PageSize while using Virtualization to improve the Performance.
- Also you have used AllowPaging property while using Virtualization. So remove Paging property in your application.
Hi support team,
I took a look and ran the proposal source core. It seems that the flicking after scroll to another position still happen (the tree get delay around ~1s then change/update right after scroll stop)
Could we prevent that behavior?
Regards,
Tho
Hi support team,
I prepare the example source which has the same implementation, same Syncfusion version as my real project.
I still get a ton of issues regarding the Treegrid when I enable EnableVirtualization
All parent nodes collapse by default and with the current configuration of treegird in example code, I got issues below:
- When I start the application, only 5 items are displayed. My expectation all the parent note should be display
- When I scroll down, nothing more displays until I scroll up, at that time, all the items are displayed, but again, when I scroll down, all items are disappear
- The scrollbar display incorrectly, it displays as we have a very long list in Tree, but in fact, all items are collapse
- The parent-child relationship display incorrectly, ALL grand node display at the top, then ALL father node then ALL child node, it looks like the image below
Attachment: Example_79280f0e.zip
Hi,
Is there any an update for my problem?
Regards,
Tho
Hi Farveen,
I got "page not found" when trying to access the link https://www.syncfusion.com/feedback/27709/virtualization-related-issues-in-treegrid-with-expandstatemapping even I already log in by my account.
Could you help me recheck it?
|
Hi Tho,
We appreciate your patience.
Query#:- It seems that the flicking after scroll to another position still happen (the tree get delay around ~1s then change/update right after scroll stop)
By default, virtualization follows debouncing concept. When performing long scroll old data will be shown during scrolling and once the scroll is released the new set of rows will be shown in TreeGrid. This is the default behavior of Virtualization feature.
Also the provided feedback Link has been moved into validated state, so that you can view the Feedback. Please revert back to us for further queries.
Regards,
Farveen sulthana T |
- 9 Replies
- 2 Participants
-
NT Nguyen Tran Phuoc Tho
- Jul 28, 2021 09:31 AM UTC
- Aug 10, 2021 06:15 PM UTC