Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
Save grid state
posted

Hi,

I wonder to know if there is any possibility to save the last grid actions (filters, grouping, sorting...) ? When users do some filtering and quite the page, I'd like them to find the grid as they left before. Is it possible to use any session or cookies with grid?

Parents
  • 23953
    Offline posted

    Hello Cem,

    I assume that you're talking about igGrid, since igGrid has an ASP.NET MVC Wrapper.

    I'm attaching a sample demonstrating how to save the igGrid state in localStorage. When you open it change the grid state by filtering/sorting or paging, then reload the page to see that the state is preserved.

    Please note that the sample is in JavaScript, but you can easily use MVC chaining to initialize the grid.

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc.

    RestoreSettings-LocalStorage.zip
Reply Children