[CLOSED] Saving grid state to database

  1. #1

    [CLOSED] Saving grid state to database

    I'm trying to save a grid's state to a database instead of using the built in cookie stateprovider. I'm able to capture grid's state successfully via the savestate event passing the state as a parameter and then I'm saving it to my database. How can I restore the grid's state from what got captured?
    Last edited by Daniil; Jan 13, 2012 at 3:36 PM. Reason: [CLOSED]
  2. #2
    Hi,

    You should render a grid with that state using CustomConfig, then handler the BeforeStateRestore, StateRestore events.
    http://docs.sencha.com/ext-js/3-4/#!...restaterestore
    http://docs.sencha.com/ext-js/3-4/#!...t-staterestore
  3. #3
    Thank you, applyState was what i was looking for.

Similar Threads

  1. Replies: 1
    Last Post: Jun 06, 2012, 12:33 PM
  2. [CLOSED] Saving grid state using CookieProvider - problem
    By voipswitch in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Aug 11, 2011, 12:44 PM
  3. Replies: 2
    Last Post: Jul 28, 2011, 5:08 PM
  4. Replies: 2
    Last Post: Apr 14, 2011, 9:03 AM
  5. Grid becomes empty after saving
    By alco in forum 1.x Help
    Replies: 2
    Last Post: Feb 13, 2009, 1:27 PM

Tags for this Thread

Posting Permissions