Home >Web Front-end >JS Tutorial >Ext GridPanel operates after loading the data sample code_extjs

Ext GridPanel operates after loading the data sample code_extjs

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

For example, after loading the data, select certain rows of data.

this is equivalent to the current GridPanel, idxs is equivalent to the row number you want to select

Copy code The code is as follows :

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