Friday, 16 February 2018

Sencha ExtJS how to select Grid First row

In ExtJs Grid we can select the first row when the grid is loaded.

Sencha Extjs grid. we can do it  as store load callback like this.

Now am getting the grid from my view.

  var myGridstore = this.getViewModel().getStore('myStore');
     var myGrid = this.getView().down('grid');
                    callback: function(records, operation, success, response) {
                    //Grid row index start from Zero.

No comments:

Post a Comment