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

Persisting Grid State Across Server Requests

2 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark Galbreath
Top achievements
Rank 2
Mark Galbreath asked on 25 Mar 2010, 04:26 PM
I have a GridHyperLinkColumn in my RadGrid and I need to save the filter state across server requests (in a session) so that when the user returns to the page the grid is in the same state as it was left.  I have studied the code at

http://www.telerik.com/help/aspnet-ajax/grdsavingsettingsonperuserbasis.html 

and I see the comment to "call SaveSettings at Render."  I believe I want to call SaveSettings went the client request is fired by clicking on a hyperlink - how do I capture that event in the code-behind?

tia,
Mark

2 Answers, 1 is accepted

Sort by
0
Mark Galbreath
Top achievements
Rank 2
answered on 25 Mar 2010, 05:36 PM
Never mind...looked up Rendering in my ASP 3.5 manual and figured it out...except for one snag:

I have a RadComboBox as a custom dropdown filter.  When an item is selected, the grid returns items matching the selection, but when additional filters are used, the custom filter returns to its NoFilter state.  Obviously, this is not good.

How do I persist the custom filter's state across server requests from other filters?

tia,
Mark
0
Yavor
Telerik team
answered on 30 Mar 2010, 02:06 PM
Hello Mark,

Can you please supply some additional information on your setup - how do you trigger the filtering?
The following example:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx

demonstrates custom filtering for the grid control - the value(s) for the dropdowns are preserved as expected. Let me know if this is the expected behavior, or if there are additional settings to keep in mind.

Greetings,
Yavor
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.
Tags
Grid
Asked by
Mark Galbreath
Top achievements
Rank 2
Answers by
Mark Galbreath
Top achievements
Rank 2
Yavor
Telerik team
Share this question
or