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

Save and restore grid filter & sort

5 Answers 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jonas Hero
Top achievements
Rank 1
Jonas Hero asked on 04 Nov 2009, 01:15 PM
Hi,

i'm looking for a mechanism to save and restore the filter and sort state of a grid. In case to restore, i make a new instance of the grid, but it has the same datasource.

Thanks in advance,

Jonas

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Nov 2009, 02:28 PM
Hello Jonas,

Please check this demo  for more info:
http://demos.telerik.com/silverlight/#GridView/SaveLoadSettings

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Karla
Top achievements
Rank 1
answered on 10 Jun 2013, 07:35 PM
That link doesn't exist. Is there a way to keep the state in a gridview?
0
Maya
Telerik team
answered on 11 Jun 2013, 06:20 AM
Hi Karla,

The proper way now is to work with RadPersistenceFramework. Please check out this demo for further reference. 

Regards,
Maya
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Karla
Top achievements
Rank 1
answered on 18 Jun 2013, 08:08 PM
thanks for the response Maya; I have a question regarding the RadPersistence framework, can it be used to keep the state of the grid after a browser refresh? the demo seems to work only for the same browser session.
0
Tina Stancheva
Telerik team
answered on 21 Jun 2013, 08:31 AM
Hi Karla,

The demo demonstrates an approach using a stream to save the persisted data. You can save this stream in a database as this will allow you to get the value of the stream from your database during different sessions.

Also, the PersistenceFramework allows you to save the persisted data in an IsolatedStorage. With this approach you will be able to access the files containing the persisted data from the isolated storage whenever you need them, even during different sessions.

I hope this information helps but do write back in case you need further assistance.

Regards,
Tina Stancheva
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Jonas Hero
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Karla
Top achievements
Rank 1
Maya
Telerik team
Tina Stancheva
Telerik team
Share this question
or