Slow response when expanding or collapsing rows

Hi,

As the row count gets higher, the tree grid's response gets slower when expanding or collapsing rows. Moreover if

RowDataBound and QueryCellInfo methods are overridden to change the styling, response gets even slower.

Please check the attached project and observe the issue.

Is there a way to make the component respond faster?


Thanks & kind regards


Attachment: SfComponentTest_f923e31.rar

1 Reply

PS Pon Selva Jeganathan Syncfusion Team September 27, 2022 06:14 PM UTC

Hi Yunus,

Thanks for contacting syncfusion forum.


Query: As the row count gets higher, the tree grid's response gets slower when expanding or collapsing rows.


On further validating on your shared sample, you are using the nearly 250 records without enabling the paging. In RowDataBound and QueryCellInfo events you are customizing the rows and cells. Without enabling the paging, more number of cells rendered in a single page(including template column and customization of cells), so it will take some delay to expanding or collapsing the treegrid. So, we suggest that you use an allowPaging property to overcome the reported problem. Using treegrid paging to fetch only a pre-defined number of records from the data source. It will help to improve the performance.

Please refer to the below help documentation,

https://blazor.syncfusion.com/documentation/treegrid/paging


Please refer to the below demo,

https://blazor.syncfusion.com/demos/tree-grid/paging?theme=fluent


Please refer to the below API documentation,

https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_AllowPaging


Kindly get back to us for further assistance.


Regards,

Pon selva


If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.





Loader.
Up arrow icon