You can persist the treeview's visual state using the approach demonstrated in the Getting Started
or Isolated Storage
help article in the PersistenceFramework's documentation. However, keep in mind that the framework is saving only primitive type properties and collections of primitive type values (string, int, double, bool, etc.). Any other objects, as ItemsSource and DataTemplates won't be persisted. To avoid losing the control's defined data templates when its deserialized with the persistence framework, you can rest them after the load process. Or you can use serialization options
to disable their serialization.
To persist complex objects you can create a custom property provide
r and implement logic for their serialization. You can find such examples in our SDK GitHub repostiroy
Also, all bindings should be defined with Mode set to TwoWay. Otherwise, they might not be serialized as expected.
Please let me know if this information is useful.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items