How to save the grid panel state when saved in cookie

  1. #1

    How to save the grid panel state when saved in cookie

    I had requirement to save the state of grid panel into database and retrieve the same state when use logged into the website. I required some code samples so that I can get state in code behind file and save the same in database. Asap suggestions required thanks in advance.
  2. #2
    Hello @Gagandeep,

    Welcome to the Ext.NET forums!

    These two settings might help:
    <ext:ResourceManager runat="server" StateProvider="Cookie" />
    <ext:GridPanel runat="server" Stateful="true">
        ...
    </ext:GridPanel>
  3. #3

    Thanks Daniil

    Now I am able to get the state of grid-panel using this App.GridPanel1.getState(App.GridPanel1, {});. Once i get this state and saved in database as per user changes. I have to load my grid-panel with the state saved in database. I have use below to apply that state
    App.GridPanel1.applyState(App.GridPanel1, array);
    But my Grid-Panel is not load with that state. Can please provide me so sample.
    Last edited by Daniil; Jan 15, 2016 at 11:22 AM. Reason: Please use [CODE] tags
  4. #4

Similar Threads

  1. Can I save and after that Reload the filters state in Ext.NET Grid view
    By Nhím Hổ Báo in forum 1.x Help
    Replies: 14
    Last Post: Mar 26, 2015, 10:22 AM
  2. Replies: 2
    Last Post: Dec 28, 2010, 9:47 PM
  3. Replies: 1
    Last Post: Sep 29, 2010, 3:10 PM
  4. State in cookie problem....
    By mrozik in forum 1.x Help
    Replies: 1
    Last Post: Sep 09, 2009, 5:14 AM

Posting Permissions