This is a migrated thread and some comments may be shown as answers.

Grid + Persistence = No Footers?

6 Answers 21 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Morgan
Top achievements
Rank 1
Morgan asked on 03 Dec 2013, 06:47 AM

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

Sort by
0
Morgan
Top achievements
Rank 1
answered on 03 Dec 2013, 07:00 AM
wiping out isostorage location for the Grid doesn't solve problem...
0
Dimitrina
Telerik team
answered on 05 Dec 2013, 09:32 AM
Hi,

May I ask you to share more information on how exactly have you implemented the persistence? 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
0
Morgan
Top achievements
Rank 1
answered on 05 Dec 2013, 04:31 PM
<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.





0
Dimitrina
Telerik team
answered on 06 Dec 2013, 08:43 AM
Hi,

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
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
0
Morgan
Top achievements
Rank 1
answered on 07 Dec 2013, 12:15 AM

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







0
Dimitrina
Telerik team
answered on 09 Dec 2013, 08:28 AM
Hi,

Indeed, you will need to implement some additional logic. You can also refer to our documentation on PersistenceManager.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
Tags
GridView
Asked by
Morgan
Top achievements
Rank 1
Answers by
Morgan
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or