Results 1 to 2 of 2

Thread: Looking for a stateful grid example

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    20
    Vote Rating
    0
      0  

    Default Unanswered: Looking for a stateful grid example

    I am looking for a stateful grid example but cannot seem to find one. The basic grid example seems to set the grid as stateful but it doesn't actual seem to retain state (for example continue hiding a column I set as hidden) after a page refresh.

    Can someone point me to an example of how to set up a stateful grid?

  2. #2
    Sencha User W8in4U's Avatar
    Join Date
    May 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default

    hi baby , here is my example:
    Code:
    Ext.application({
        name: 'NQ',
        appFolder: 'UI/app',
        launch: function() {
            Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));
            Ext.create('Ext.container.Viewport', {
                layout : {
                    type : 'border',
                    padding : '5'
                },
                items : [ {
                    xtype:'gridpanel',
                    stateful:true,
                    stateId:'statefulgrid',
                    columns:[{
                        header : 'name'
                    },{
                        header : 'email'
                    }]
                } ]
            });
        }
    });

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •