I have started working on a section of storing the Expanded state of each Parent/Child node.
How would the best way to do this?
For example do I store the name of the text of the child/parent node and then loop through and find that name then expand it? Or would it be better to store an id of sorts.
Right now, I am storing the text value...But wondered if there was a better way.
Then in vb, how would I loop through the parent/child nodes to expand/collapes then after tree is loaded?
thank you.
Hi there,
yes, the best approach is to use an ID so that you know exactly which node state you are saving. Since you may have multiple nodes with same text. You can generate your own IDs and store them in the node.Value property. This property is designed for storing custom data in it.