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

persisting settings

2 Answers 46 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 05 Aug 2011, 08:14 PM
Is there any way to persist the settings for a listview (i.e. current sort column) similar to the way the RadGrid does or do I have to manually store a session variable or something?

2 Answers, 1 is accepted

Sort by
0
Dave
Top achievements
Rank 1
answered on 10 Aug 2011, 06:38 PM
Anyone able to help with this? Thanks!
0
Veli
Telerik team
answered on 11 Aug 2011, 08:06 AM
Hi Dave,

We do not have a ready solution for persisting RadListView settings, but you can use the same approach as with RadGrid's settings persister. You need to collect the required settings and store them in a either a custom settings collection. You can then serialize the collected settings to different formats. When restoring settings, reciprocally you need to deserialize the saved settings to retrieve the settings container, then restore the saved settings to a RadListView instance. Finally, you need to rebind the listview for the changes to take effect.

Veli
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ListView
Asked by
Dave
Top achievements
Rank 1
Answers by
Dave
Top achievements
Rank 1
Veli
Telerik team
Share this question
or