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

RadFilter loadsetting on pageload

5 Answers 109 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Y
Top achievements
Rank 1
Y asked on 09 Nov 2011, 04:12 AM
Hi telerik,
   
     I use a radfilter for filter the RadGrid. Now I save the value of radfilter SaveSettings function.I need load the setting when pageload.
     any idea? thanks!

5 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 11 Nov 2011, 11:33 AM
Hello Y,

Please examine the Save/Load RadFilter expressions demo to see how the desired functionality can be implemented.

I hope this helps.

Greetings,
Mira
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
Y
Top achievements
Rank 1
answered on 14 Nov 2011, 02:28 AM
Dear Mira 
     Thanks your reply.
     But I bind the data to grid on back code.  I have save the setting string in database , I want when open the page can load the setting,and I bind the data to grid on Behind code. So this method doesn't work.
     Any idea? Thanks!
0
Mira
Telerik team
answered on 15 Nov 2011, 12:01 PM
Hello Y,

I have followed your scenario and prepared a sample project for you demonstrating how the desired functionality can be implemented. You can find it attached to this message.

I hope it helps.

Best wishes,
Mira
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
Y
Top achievements
Rank 1
answered on 16 Nov 2011, 11:06 AM
Dear  Mira,

      Thank you very much for your follow up.But my problem still unresolved. 
      I use your demo,I know it's no problem when in one page to save and load setting.But it will be error when open another page to load setting(don't close IE, so the session is have setting data). 
       Must be my explained is unclear . So I upload a screenshots to illustrate.

0
Mira
Telerik team
answered on 18 Nov 2011, 04:02 PM
Hello Y,

If you want the filter settings to be available each time the user visits the site, I suggest that you use a cookie.
Please examine the following articles for additional information:
ASP.NET Cookies Overview
ASP.NET State Management Recommendations

I hope this helps.

All the best,
Mira
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
Filter
Asked by
Y
Top achievements
Rank 1
Answers by
Mira
Telerik team
Y
Top achievements
Rank 1
Share this question
or