Ext GridPanel加载完数据后进行操作示例代码
更新时间:2014年06月17日 17:41:24 投稿:whsnow
Ext GridPanel加载完数据后进行操作,比如load数据之后选定某些行数据,下面有个示例,需要的朋友可以参考下
比如load数据之后选定某些行数据。
this相当于当前的GridPanel, idxs相当于你要选中的行号
this.store.on("load",function(store) {
this.getSelectionModel().selectRows(idxs);
//this.selectedRows = [];
},this);
this相当于当前的GridPanel, idxs相当于你要选中的行号
复制代码 代码如下:
this.store.on("load",function(store) {
this.getSelectionModel().selectRows(idxs);
//this.selectedRows = [];
},this);
相关文章
关于viewport,Ext.panel和Ext.form.panel的关系
那个深入浅出ext作者比我还懒 viewport存放Ext.panel对象,其容器中的成员可以以borderlayout方式布局2009-05-05
最新评论