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

Simple GridView Serialization

1 Answer 14 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kennet
Top achievements
Rank 2
Kennet asked on 27 Sep 2013, 01:24 PM
Hi,

PersistenceManager works fine for this, but is there a lighter way?  I only need to get/set the order of columns. If the user re-order columns I want to save this and be able to load it. If I could cave to cookie or simular that would be best.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 27 Sep 2013, 03:18 PM
Hello,

If you just need to store the order of columns, then you can iterate on each column and save its display index when unloading RadGridview. Then save this information on any storage you would like to use.
After that, when you want to load the settings back, you just need to read through the saved values and restore the DisplayIndex per each columns back.
 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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
Kennet
Top achievements
Rank 2
Answers by
Dimitrina
Telerik team
Share this question
or