Results 1 to 2 of 2

Thread: Grid Tool Bar event handler not working.

  1. #1
    Sencha User
    Join Date
    May 2012
    Location
    Bangalore
    Posts
    4

    Default Grid Tool Bar event handler not working.

    _getConfig: function () {
    return {
    region: "center",
    height: 600,
    id: "grid",
    loadMask: true,
    tbar: [
    header = 'STATE POPULATION ',
    {
    text: 'Refresh',
    style: 'margin-left: 870px',
    handler: function () {
    // var store = this._createstore();
    // store.reload();
    // this._createstore.getStore().reload();
    //this.showloadMask();
    //this.getStore().load()
    //this._reload();
    // this.grid.GridView().refresh();
    // this._reload;

    }

    }
    ],
    store: this._createstore(),
    columns: this._columnModel,
    view: new Ext.grid.GridView({})
    };
    }

    - i have created one refresh button on tool bar.
    - how can i refresh grid data using that button click?

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124

    Default try load()

    Hi prasadguduri,

    Are you try load() of store class -
    Code:
    handler:function(){
    var store = yourGrid.getStore();
    store.load()
    }
    For more info read API http://docs.sencha.com/ext-js/4-1/#!...re-method-load
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

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
  •