Hi -
I have an Ultra Tree with three node levels. Total Number of nodes in the tree will be around 10,000. The problem with this tree is when the user selects a particular node, a new win form will be opened. After closing the winform I am refresing the whole tree as the win form changes some of the properties of the nodes thereby causing the nodes to rearrange. So after the win form is closed when I refresh the tree, the user wants the tree nodes to be in the same pattern before opening win form like node 1 expanded and node 2 collapsed etc. All I see in the tree node is Expand All and Collapse All which doesn't entirely solve the purpose. Considering the performance issue which is the best way to do this.
Any suggestions will have a great impact on my application.
Thanks in advance.
Assuming you mean the overall performance of the control after the nodes are created from the Xml, there will be no difference whatsoever. The control does not know or care how the nodes came into existence, so whether they were created through data binding, an Xml file, or programmatically, the performance will be the same.
Brian-
I am planning to add this funtionality. Do you ahve any idea of how this will affect the performance of the application after using this.
Thanks!
-swetha
Yes, you can use the control's SaveAsXml/LoadFromXml methods to persist/restore the state of the control.
Should I use kind of xml file to save the settings ?
Hi Brian-
Thanks for the reply. The win form that is opening change the parent node of one of the child node therby rearranging the ultra win tree.
According to my understanding Sort or Sort Comparer cannot applied in this scenario. What I need is the app should some how remember the tree and node settings before opening the win form and display in the same format after closing the win form. Simply I need to preserve the state of the tree.
-Thanks.
Swetha.