Get store state in codebehind

  1. #1

    Get store state in codebehind

    Hi,
    how can I access store setting (like paging, sort info, filters) in codebehind, but not after storerefresh event. I know I can get it from StoreRefreshDataEventArgs, but I would like to access this info in any direct event (I want to implement mechanism to save grid state before redirect).
    Is there any possibility to do this? Or should I get these settings in JS and send them as DirectEvent ExtraParams?

    Thanks fo reply!
  2. #2
    Hi @ambruslaco,

    Quote Originally Posted by ambruslaco View Post
    Is there any possibility to do this?
    There is the "stateful" mechanism.
    http://docs.sencha.com/ext-js/3-4/#!...t-cfg-stateful

    Quote Originally Posted by ambruslaco View Post
    Or should I get these settings in JS and send them as DirectEvent ExtraParams?
    It is one of possible solutions.

    Here is a discussion how to set up some extra parameters for all Ext.NET AJAX requests.
    http://forums.ext.net/showthread.php?12972

Similar Threads

  1. [CLOSED] Store State
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Sep 28, 2011, 8:16 AM
  2. Set Store BaseParams from codebehind
    By stu in forum 1.x Help
    Replies: 2
    Last Post: Jun 22, 2010, 4:47 PM
  3. Store and Grid - CodeBehind
    By Puia in forum 1.x Help
    Replies: 0
    Last Post: Oct 08, 2009, 12:02 PM
  4. Replies: 0
    Last Post: Mar 11, 2009, 5:06 AM
  5. Creating a Store From CodeBehind
    By ahmetmeral in forum 1.x Help
    Replies: 5
    Last Post: Dec 14, 2008, 5:14 PM

Tags for this Thread

Posting Permissions