AdvTreeView - How to save the current node view

Good morning,

I am using AdvTreeView. And as I have multiple users, each of them wants to have his/her favorite nodes collapsed or expanded for easy view purposes.

How can I easily save and load the current collapse/expand situation of the nodes?

Many thanks.

Hi,

You can save the whole treeview state with TMSFNCTreeView1.SaveSettingsToFile; & load it again with TMSFNCTreeView1.LoadSettingsFromFile

Hi, I deed that, but on reload it only shows the fully collapsed tree and not the partial expand/collapased status as I saved it. Hence my question :slight_smile:

Saving the collapse/expand situation alone is not possible, you would have to manually save it in your own structure.