I have a basic treeview which I would like the user to have the ability to add nodes to in real time. Currently they define the nodes on one screen and when they close it, the treeview refreshes. However, I would like to appear to the user as if the node was placed there in real time. The problem is that when I refresh the treeview, all of their expanded nodes disappear.
Does anyone have a quick and easy way to store which nodes are expanded and then re-expand them (taking into account that there will now be one extra node)?