Slow CollapseAll in the hierarchical treegrid

I have a treegrid with hiararchical data and the virtualitation property enabled.
I expand all the datasource records setting the property expanded to true in the objects in model.flatrecords where the property hasChildRecords is true.
I collapse all the records calling the function collapseAll.
The treegrid works fine when I expand all the records and than collapse all.
But the treegrid is very slow when I expand all the records, I scroll some records with the mouse and than I collapse all the records. In this case the operation take longer than 5 seconds.
Furthermore treegrid shows the collapsed records as expected but also the message "No records to display".
I have in the model.flowRecords 400 elements.
The tregrid when load has 3 elements in the model.updatedRecords.
When I expand all the elements there are 400 elements in the model.updatedRecords.
I'm using the dll syncfusion.ej.eb version 15.34

How can I solve the problem?

1 Reply

PE Punniyamoorthi Elangovan Syncfusion Team April 17, 2018 01:22 PM UTC

Hi Giuseppe, 
 
Thank you for contacting Syncfusion support. 
 
Query1: Treegrid shows the collapsed records as expected but also the message "No records to display". 
 
Answer:  We can able to reproduce your reported issue to our end. We have already fixed this issue and the fix for the issue is available in the latest product version of 16.1.0.32. We request you to update your source to our latest version to overcome this issue. 
 
Query2: Treegrid is very slow when I expand all the records, I scroll some records with the mouse and than I collapse all the records. In this case the operation take longer than 5 seconds. 
 
Answer: We have analysed your reported issue, but we are unable to reproduce the reported issue. We have prepared a sample with your requirement and we request you to revert us by modifying the sample based on your application along with the replication procedure. This would be helpful for us to serve you better. 
Sample Location:  
Please let us know if you require further assistance on this. 
Regards, 
Punniyamoorthi 



Loader.
Up arrow icon