Preserve Grid State

2 posts, 0 answers
  1. Jillian
    Jillian avatar
    16 posts
    Member since:
    Aug 2011

    Posted 03 Apr 2013 Link to this post

    I need to preserve the filter, page, sort of my grid after moving off the page and coming back to it.  I found using a cookie to preserve grid state in the code library: I have an MVC application, so I am having some difficulty understanding what is going on in the example, and what I would need to do to make this work with MVC.  Can someone explain how to make this logic work with MVC?
  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2295 posts

    Posted 04 Apr 2013 Link to this post

    Hello Jillian,

    The logic applied in the demo could be used for both MVC and Web Grid. The current implementation relies on the jquery-cookie plugin to save and read the cookies with the Grid state. Basically on each dataBound event we are reading the Grid state and saving it in a "employeesState" cookie and on each change event we get the selected items and save them in "empRows" cookie. On document ready we check if the cookie exists and apply the saved state.


    Kind regards,
    Dimiter Madjarov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top