Avalonia.Controls.TreeDataGrid icon indicating copy to clipboard operation
Avalonia.Controls.TreeDataGrid copied to clipboard

Multiple roots in hierarchy draws only first root initially.

Open obiwanjacobi opened this issue 2 years ago • 0 comments

I am a Avalonia noob, but I think I did this right...

I have a standard MVVM setup and in the ctor of my model I fill the HierarchicalTreeDataGridSource<T> with the root nodes I want displayed. When the UI comes up, only the first root node is displayed (collapsed). When I expand that node, the second root node is also drawn. I also noted that only the first column is drawn for that initial root node. When I click around some and the view is reloaded it draws that initial root node correctly.

I do not provide all the nodes initially -only the roots- and I am relying on the 'GetChildren' of the HierarchicalExpanderColumn<T> to get child nodes as we go - which seems to work fine.

obiwanjacobi avatar Jun 25 '23 08:06 obiwanjacobi