RadFilter loadsetting on pageload

6 posts, 0 answers
  1. Y
    Y avatar
    17 posts
    Member since:
    Sep 2011

    Posted 10 Nov 2011 Link to this post

      Dear 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!
  2. James Campbell
    James Campbell avatar
    90 posts
    Member since:
    Jul 2012

    Posted 10 Nov 2011 Link to this post

    Hello Y,

    Take a look at this, this demo shows how to save and load filter settings using RadFilter in a RadGrid:

    http://demos.telerik.com/aspnet-ajax/filter/examples/saveloadexpressions/defaultcs.aspx

    Hope that helps,
    Jim
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Y
    Y avatar
    17 posts
    Member since:
    Sep 2011

    Posted 13 Nov 2011 Link to this post

    Hi James,
         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!
  5. James Campbell
    James Campbell avatar
    90 posts
    Member since:
    Jul 2012

    Posted 14 Nov 2011 Link to this post

    Y,

    Try to put the loading of the filter in your Page_Load method, that should work fine, make sure to rebind. Also, make sure that you are using a Base64 string for saving and loading your settings.

    Here are some more example of filters in a grid:

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

    -Jim
  6. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 15 Nov 2011 Link to this post

    Hello James,

    I have answered your post concerning the same issue in the RadFilter loadsetting on pageload forum thread. In order to avoid duplicate posts, I suggest that we continue the communication in it.

    Regards,
    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
  7. James Campbell
    James Campbell avatar
    90 posts
    Member since:
    Jul 2012

    Posted 15 Nov 2011 Link to this post

    Hi Mira,

    Think you meant to respond to Y, not me, I was just pointing them in the right direction.
    -Jim
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017