1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    24
    Vote Rating
    0
    rossmck is on a distinguished road

      0  

    Default State Manager and Grids

    State Manager and Grids


    I've tried to find detailed documentation (or examples as I'm more of a sever-side developer and relatively new to the Ext framework) on the State Manager included with Ext.

    I've added this to my Ext.onReady function in the main JS file of my application

    Code:
    Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
    and stateful: true to the GridPanel but as far as I can see, no cookies are being set.

    The ultimate purpose in this is to be able to use the PrinterFriendly plugin to produce a "Print This Grid" button on the top of the grid that will print whatever is currently displayed in that grid (which may be filtered with the Ext.ux.grid.Search plugin) - so if there's an easier way of going about it please let me know.

  2. #2
    Ext User
    Join Date
    Jul 2007
    Posts
    3,128
    Vote Rating
    0
    devnull has a little shameless behaviour in the past

      0  

    Default


    What are you hoping that it will save? It also only creates a cookie when something changes state that it is set to save. As far as i know for grid that is only column order, size, and sort info.

Thread Participants: 1