I have a TreeView with 4 levels of nodes. Here is my scenario
1) Expand the tree tree along one path all the way down to the leaf nodes.
2) Now I need to go back to the second level node and remove all child branches so that the next time I expand this node the data is reread from the database.
Currently if I just collapse the second level node the data will remain on the client and not be refreshed from the database.
How can I do this? There seems to be multiple ways to prune / destroy / remove / detach a branch of nodes and I am unsure which will force a reread from the database.
Or is there a way to instruct the treeview to always reread from the database when a node is expanded?
Thanks
Stevebn
1) Expand the tree tree along one path all the way down to the leaf nodes.
2) Now I need to go back to the second level node and remove all child branches so that the next time I expand this node the data is reread from the database.
Currently if I just collapse the second level node the data will remain on the client and not be refreshed from the database.
How can I do this? There seems to be multiple ways to prune / destroy / remove / detach a branch of nodes and I am unsure which will force a reread from the database.
Or is there a way to instruct the treeview to always reread from the database when a node is expanded?
Thanks
Stevebn