So attached are 2 screens, one showing when I run with persistence and the other running without it... ShowColumnFooters is checked on cause I need it for column totals. Don't like when it stops working for some strange reason... I started to think it was the way I setup my settings popup for GridView but then I realized that it turns out to be when its loading settings for the Grid in code-behind. I am actually not doing anything weird, I can wipe out the Isostorage if you like in my profile to see if this causes the anomaly to go away. Its the first time I play with persistence, thought I was going to have to write my own stuff for this but ya'll did it for us.. :)
I don't do much in codebehind normally since I use MVVM for most everything but this is the one thing that I will drop in code behind when its strictly view related.
6 Answers, 1 is accepted

May I ask you to share more information on how exactly have you implemented the persistence?
Regards,
Didie
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>

<
tel:RadGridView
AlternateRowBackground
=
"PaleGreen"
tel:PersistenceManager.StorageId
=
"FlightsGrid"
.. />
rest of columns left out for brevity and then in my codebehind for the view in question I have 2 methods one for Loaded and another Save button click event
Loaded has
IsolatedStorageProvider isostorage = new IsolatedStoreProvider();
isostorage.LoadFromStorage();
Click event has
IsolatedStorageProvider isostorage = new IsolatedStoreProvider();
isostorage.SaveToStorage();
the grid is the only control state being saved. I am not doing any crazy state savings with groups so I haven't had to customize the save state yet.
You can check the approach from the "GridView Serialization" WPF Demo and review how the settings are applied back to the RadGridView.
Regards,
Didie
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>

ok that is some interesting amount of code it works. Here I was thinking I was getting something for 2 lines instead I was led astray :P. In the end flexing the brain a little harder, but in reality that is still some configuration on the backside to get exactly what you need to save to Iso. On reuse side you only have to code the provider once and you can use it will all GridViews you want to save configuration for.
Thanks Didie
Morgan
Indeed, you will need to implement some additional logic. You can also refer to our documentation on PersistenceManager.
Regards,
Didie
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>