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

saving the gridview setting

4 Answers 69 Views
GridView
This is a migrated thread and some comments may be shown as answers.
loraine
Top achievements
Rank 1
loraine asked on 16 May 2011, 02:08 PM
hi!

is it possible to save the gridview setting which includes the (grouping of rows, filtering, sorting, etc)? i have a gridview and i want to save its setting and giving the setting a name. then it should be added to the list of gridview settings. from the list of gridview settings, i should be able to apply the selected setting.

how can i do that? is it even possible?

thanks

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 16 May 2011, 02:10 PM
Hello loraine,

You may check out this example for further reference.
 

Regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
loraine
Top achievements
Rank 1
answered on 23 May 2011, 07:40 AM
Hi Maya!

how can i add the gridview setting to the list and apply the selected gridview setting from the list to the gridview...

am i on the right track if i do this:

class gridviewSetting
{
    public string SettingName {get; set;}
    public RadGridViewSettings Setting {get; set;}
}

List<gridviewSetting> listSetting;
0
Milan
Telerik team
answered on 24 May 2011, 10:29 AM
Hello loraine,

Looking at RadGridViewSettings.cs you will find that the grid settings are save as a file in isolated storage (Reload and Save methods). If you would like to have several settings side-by-side you can have several such files and load them on demand. 

Greetings,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
loraine
Top achievements
Rank 1
answered on 24 May 2011, 02:10 PM
Hi Milan!

thanks for the reply. sorry, but i don't clearly understand your explanation. can you please expound it further. i would appreciate if if you would place sample code. 

regards,
Loraine
Tags
GridView
Asked by
loraine
Top achievements
Rank 1
Answers by
Maya
Telerik team
loraine
Top achievements
Rank 1
Milan
Telerik team
Share this question
or