Ext GridPanel加载完数据后进行操作示例代码

  比如load数据之后选定某些行数据。

  this相当于当前的GridPanel, idxs相当于你要选中的行号

  

复制代码 代码如下:

  this.store.on("load",function(store) {

  this.getSelectionModel().selectRows(idxs);

  //this.selectedRows = [];

  },this);