I got a problem with saving and loading the current state of my RadDocking generated with a dynamic DataSource.
I bind the list of a data class to the RadDocking or a custom inheritance of it. You can see a few samples in the project assembly.
I have included the Telerik Persistance Framework and the SharpSerializer to save the grid in a data storage (for example: IsolatedStorage)
You can start the project to see what happens, you can change the custom docking elemetn in the MainPage.xaml with the commented one.
In case that you still not get what i mean, the minimum requirements on the product are:
- A list of data (filled with dynamic values) in the ViewModel
- It should save and load the states of the RadDocking if required (e.g.: with 2 dynamic ChartViews and 1 GridView or with 1 GridView and any other Control in RadPanes) and provide it to the ViewModel
- In every RadPane there should be the DataTemplate for the kind of view the customer want (e.g.: A ChartView or a GridView of the data)
The key thing is, that the content of the RadPane depends on the DataTemplate and on the data itself collected in a data class.
A List of Both are bound to the ItemSource Property of the RadDockingExtension which creates a RadPane for every data class and applies the ContentTemplate of it.
If you load the RadDocking it should get back the last state or one of many saved in a DataStorage. The data class should get updated. For testing purposes we will fix the list of the data class to a specific amount of elements (e.g: 3 items) and the same element with new information will always be on the same index, later we could use a Dictionary or something similar.
It is really nessecary to save the state of the RadDocking to a database or a File, the IsolatedStorage is only a example for testing purposes.
File => Download || Datei -> Herunterladen