Persistance grid paging, sorts, and filters

4 posts, 1 answers
  1. Alexandre
    Alexandre avatar
    20 posts
    Member since:
    Apr 2014

    Posted 30 Jun 2014 Link to this post

    Hi,

    I'm using a grid to display the results from a search. The client made a request that when he/she bookmark the page the grid remember the fitlers, sort, and page. How can I achieve this?

    Thanks,
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 01 Jul 2014 Link to this post

    Hi Alexandre,


    Storing the Grid filter, sort, page etc. information is achievable, for example in a cookie, but I am not sure if detecting when a page is bookmarked is possible. According to the following thread, it it is not.

    Let me know if this is the current case or I am missing something.

    Regards,
    Dimiter Madjarov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Alexandre
    Alexandre avatar
    20 posts
    Member since:
    Apr 2014

    Posted 02 Jul 2014 Link to this post

    Hi,

    Persist the grid state in a cookie won't do in this case. The client want to be able to share the URL in email and still get the same filters, sorts, and paging when the grid is loaded.
  5. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 02 Jul 2014 Link to this post

    Hello Alexandre,


    This could be achieved if the Grid is configured to use server binding. In this case the Grid performs GET requests and retrieves the filter, sort, paging etc. information from the query string in the URL.

    Runnable example of server bound Grid could be found in the solution in your Kendo UI distribution package.

    Regards,
    Dimiter Madjarov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET MVC is VS 2017 Ready