The example contains a helper class that can be used to save and load the current expanded / collapsed state of the XtraTreeList nodes. Please refer to How to preserve the expanded state of TreeList nodes when refreshing data article to learn more.
Question Comments
Added By: Peppomuck at: 7/14/2013 8:09:46 AM
Why don't you save the node.Id's in a List<int> ?
That would be more type safe (instead of seraching by node.GetValue(node.TreeList.KeyFieldName) and safing object types in ArrayList)
Besides, your example doesn't match when you reassign (e.g. after saving and reloading data) the binding source or the KeyFieldName doesn't expect like in the example.
Is there a chance of this being implemented to the XtraTreeList Suite? I can imagine there are large amounts of people who use this code regularly.
Added By: Olejka (DevExpress Support) at: 2/26/2015 4:29:09 AMHello,
Currently, we don't have plans to implement this option out of the box. We've implemented this solution to allow our users to manually save nodes' state.
Nevertheless, thank you for your input. We will consider implementation of this feature in the future.