Persisting Grid State Across Server Requests

3 posts, 0 answers
  1. Mark Galbreath
    Mark Galbreath avatar
    171 posts
    Member since:
    Jul 2009

    Posted 25 Mar 2010 Link to this post

    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. Mark Galbreath
    Mark Galbreath avatar
    171 posts
    Member since:
    Jul 2009

    Posted 25 Mar 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 30 Mar 2010 Link to this post

    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.
Back to Top