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

[Solved] Reset saved grid settings

1 Answer 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Danny Scheelings
Top achievements
Rank 1
Danny Scheelings asked on 05 Oct 2009, 12:05 PM
Hi,

I'm using the Save grid settings tutorial from the Telerik Help site (http://www.telerik.com/help/aspnet/grid/grdsavingsettingsonperuserbasis.html) to save and load the settings using the ASP.NET Profiles.

Now I want to reset all settings of a grid. Grouping, Sorting and Filtering can be cleared using the MasterTableView property of the grid, but I do not know how to reset the Width, Order and Visibility of the columns to its defaults. Can anybody help me with this?

Thx,
Danny

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 07 Oct 2009, 01:04 PM
Hello Danny,

RadGrid does not have a default width, so you pick some width value and set it to be the default value. Default column order is the same as in RadGrid's data source, so you can take it from there. Default visibility of columns is true, unless you have columns that you initially hide in RadGrid.

Isn't it easier for you to simply remove (or clear) the saved profile settings for your grid? In this way, RadGrid will render with whatever settings it is initialized.

Greetings,
Veli
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.
Tags
Grid
Asked by
Danny Scheelings
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or