AvaloniaUI / Avalonia.Controls.TreeDataGrid

A combined TreeView/DataGrid for Avalonia.
MIT License
233 stars 48 forks source link

Add methods to expand/collapse multiple levels of items without a performance penalty. #273

Closed grokys closed 3 months ago

grokys commented 3 months ago

Previously the only way to e.g. expand all items in a hierarchical TreeDataGrid was to expand each item one by one. This was very slow as after each expansion the flattened list of rows needed to be recalculated.

Added the follow methods which speed this up:

alvaro-berruezo-unity3d commented 3 months ago

Tested the new methods to expand/collapse a large number of rows (~60k) with a good amount of depth. The methods work as expected and the performance is greatly improved

neondev9 commented 2 months ago

Included in recent 11.0.10. Thanks a lot for this very useful methods.