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

[Solved] Persist CurrentFilterValue and CurrentFilterFunction

5 Answers 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Becky Bryda
Top achievements
Rank 1
Becky Bryda asked on 02 Apr 2013, 07:33 PM
I'm using the Profile and the grid persistence code located here:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/storing-multiple-grid-settings-in-database-via-profile.aspx

This code lacks the ability to save CurrentFilterFunction and CurrentFilterValue.

I've tried the new code persistence, but can't get it to save with the profile code and really don't want to redo everything. Any help on saving & loading just CurrentFilterFunction and CurrentFilterValue with the original code?

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Apr 2013, 04:29 AM
Hi,

Try the approach mentioned in the following demo.
Grid - Persisting Grid Settings

Thanks,
Shinu
0
Becky Bryda
Top achievements
Rank 1
answered on 03 Apr 2013, 12:38 PM
Sorry, not really the answer i was looking for. I spent a decent amount of time trying to incorporate the filter code from the sample into the already implemented solution without luck. Everything else works fine, my users just noticed this one piece. I tried to quickly switch the demo code but without luck with the profile information. Really could just use some direction in adding the filter code to the sample noted below. thank you
0
Andrey
Telerik team
answered on 08 Apr 2013, 08:50 AM
Hi,

In order to achieve your goal you could use our new Persistence Framework. You could check this online demo application for more information.

Give it a try and you should succeed.

Greetings,
Andrey
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.
0
Becky Bryda
Top achievements
Rank 1
answered on 08 Apr 2013, 01:06 PM
So the answer then is no easy way to implement with the solution mentioned above? I really don't want to unravel everything already implemented to switch to a new approach. I recommend taking the other solution off the website if it isn't supported.
0
Daniel
Telerik team
answered on 11 Apr 2013, 04:15 PM
Hello Becky,

Indeed, it is possible to modify the code-library project to persist the full set of column settings. It would be easier for you if you use the demo posted by Shinu as a starting point. Nevertheless, I have modified the original example for your convenience. You can download it from the attachments.
You can also take advantage of the persistence framework offered by Andrey. For this purpose you would have to create a custom storage provider (which I'm sure will be easy for you). You could follow the model demonstrated in the following example: Custom Storage Provider

I hope this helps.

Regards,
Daniel
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
Becky Bryda
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Becky Bryda
Top achievements
Rank 1
Andrey
Telerik team
Daniel
Telerik team
Share this question
or