Ext GridPanel加载完数据后进行操作示例代码
(编辑:jimmy 日期: 2025/5/11 浏览:3 次 )
比如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);
下一篇:ext中store.load跟store.reload的区别示例介绍