can persist properties of the following types:
- Primitive Types
This means that the framework only persists the visual state of your application. However in a databinding scenario like in your case, the ItemsSource
and Items collections cannot be persisted as they contain business objects. This is why in a databinding scenario it isn't recommended to use the PersistenceFramework
. It's better to save the updated business objects instead so that you can reload them afterwards.
However, if you still prefer using the PersistanceFramework
you can create a custom property provider for the ItemsControl
and persist the ItemsSource
collection and the business objects properties. I attached a sample project demonstrating this approach. I hope that will help you implement your scenario.
All the best,
the Telerik team
Sharpen your .NET Ninja skills
! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>