Save/restore tree state

Is there a way I can save the expanded/collapsed state of all the nodes in a tree? When the user returns to the Blazor app they would like to see the tree in the same state they left it. If there is no tree-level way of getting the whole state, would I have to listen for expand events and record each node state change in my own persistent collection?

Thanks, Greg

Hi @gfkeogh,

There is no built-in way to get the whole expanded state of the tree. You will have to maintain it yourself somehow by handling the expand events.