Blazorise icon indicating copy to clipboard operation
Blazorise copied to clipboard

Treeview - Access the state of Treeview

Open saeb-panahifar opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. On our website we like to save the Treeview state and when a user back to the page it shows the latest state of Treeview. At the moment this is impossible because this work has been done internally.

Describe the solution you'd like A clear and concise description of what you want to happen. Include any alternative solutions you've considered.

Additional context

Add any other context or screenshots about the feature request here.

saeb-panahifar avatar Sep 14 '22 16:09 saeb-panahifar

Hmm can you elaborate? While a complete "graph" would be ideal. Maybe a treeRef.GetNodesState or something like that provides you with a Tree Strucutre with all of your provided data and its state (expanded or collapsed) would be interesting to have.

But I believe, you might already have that information? You have both the ExpandedNodes collection and the Nodes collection (The one you provide)? Would that not be enough?

David-Moreira avatar Sep 19 '22 21:09 David-Moreira

I agree with @David-Moreira; you already have complete control over the expanded nodes and how to load child nodes. So I don't think adding API to access the internal state is needed.

Closing this now.

stsrki avatar Jan 06 '23 10:01 stsrki