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

Load/save filters settings

11 Answers 243 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 29 Nov 2010, 11:19 AM
Hi,

For one of my customer, I've to load the filter settings of a RadGridView when I load the application, and save them when I quit the application.

How can I do that?

Thank you!

11 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 29 Nov 2010, 11:46 AM
Hello Julien,

This example should get you started.

I hope this helps.

Regards,
Ross
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Julien
Top achievements
Rank 1
answered on 29 Nov 2010, 02:06 PM
Hum, there is something wrong here: If I try your online example it seems to work, but, if I do this directly from the installed RadControls for WPF demo, it doesn't work, and I've the 2010 Q3 version installed!

What is wrong? 
0
Rossen Hristov
Telerik team
answered on 29 Nov 2010, 03:04 PM
Hi Julien,

What errors/exceptions do you get?

Sincerely yours,
Ross
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Julien
Top achievements
Rank 1
answered on 29 Nov 2010, 03:21 PM
I don't get any exception, the error is that filters have the default filter, and not the filter I put before(I indicate that I want only rows with an UnitPrice set to 3), I switch to another page(let say the "Controls" page, and I come back, and I've then every rows again.

Another question, this Load/Save settings, it's something permanent, I mean, if I close and restart the application, it will work? Or it's relative to the instance?
0
Yavor Georgiev
Telerik team
answered on 29 Nov 2010, 04:54 PM
Hi Julien,

 Unfortunately there is an issue with our Q3 release when it comes to saving the field filters (the two boxes in the bottom half of the filtering control). We are working on restoring the previous functionality, but until then I'm afraid I cannot offer a workaround.

 The Save/Load settings example uses the IsolatedStorage feature of the .Net framework, which ensures persistency between application runs. You can learn more about it here.

All the best,
Yavor Georgiev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Julien
Top achievements
Rank 1
answered on 30 Nov 2010, 01:54 PM
I've to do this for january, can you resolve the problem until then?

Should I not receive some points for this bug discovery?
0
Yavor Georgiev
Telerik team
answered on 30 Nov 2010, 04:44 PM
Hello Julien,

 It appears that I was mistaken and the issue has been already resolved. Please make sure you have the latest version of RadGridViewSettings.cs from our demo here.

Sincerely yours,
Yavor Georgiev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Julien
Top achievements
Rank 1
answered on 30 Nov 2010, 05:30 PM
Like I said, in the online demo, it works, but on the demo installed on my computer(during the installation of the WPF 2010 Q3). Is there a new release since the 2010 Q3?
0
Yavor Georgiev
Telerik team
answered on 01 Dec 2010, 08:51 AM
Hello Julien,

 The demo application that comes with the RadControls for WPF installation package cannot properly execute this example because of an issue with the IsolatedStorage API, which usually arises in desktop WPF applications, but on in XBAP or Silverlight scenarios. We are working to resolve this issue. However, if you use the code of the demo in your own application, it should work.

 Please try using the latest version of RadGridViewSettings.cs in your application and let me know if it still doesn't work.

Kind regards,
Yavor Georgiev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Asela
Top achievements
Rank 1
answered on 06 Jan 2011, 12:34 AM
Hi,

Could you please let me know How to save / load setting for the gridview if you are following MVVM.

And also this semms to be working only for the column width, column index, but not for filtering or grouping. I'm Using the version [2010.3.1110.40] can you please confirm whether the issue has been resolved.?

Thanx
Asela
0
Maya
Telerik team
answered on 06 Jan 2011, 01:36 PM
Hi Asela,

I have already replied to the forum thread you started.
 

All the best,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
GridView
Asked by
Julien
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Julien
Top achievements
Rank 1
Yavor Georgiev
Telerik team
Asela
Top achievements
Rank 1
Maya
Telerik team
Share this question
or