Home  >  Article  >  Web Front-end  >  Ext GridPanel加载完数据后进行操作示例代码_extjs

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

WBOY
WBOYOriginal
2016-05-16 16:44:071836browse

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

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

复制代码 代码如下:

this.store.on("load",function(store) {
this.getSelectionModel().selectRows(idxs);
//this.selectedRows = [];
},this);
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn