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

Restore grid settings to default

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 23 Oct 2012, 02:46 PM
Hi team,
how we can reset the grid setting to the default after loading the saved settings.
we want to have a "Reset" column which return the grid to the default settings.
Regards
Ahmed Salem

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 26 Oct 2012, 06:30 AM
Hi Ahmed,

I am not sure what exactly your scenario is but I suppose you are talking about RadGrid's settings persistence one. If so, the default settings when the grid loads initially should be saved programmatically with a given key (be it in Session or any other persistence media) in the same way any other custom settings are saved and when the restore button is clicked, then they should be loaded with the key that has been used to save them:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx

Hope it helps.

Greetings, Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or