The sample code is manipulated after the Ext GridPanel loads the data

  • 2020-03-30 03:22:11
  • OfStack

Let's say you load the data and then select some rows.

This corresponds to the current GridPanel, and idxs to the line number you want to select
 
this.store.on("load",function(store) { 
this.getSelectionModel().selectRows(idxs); 
//this.selectedRows = []; 
},this); 

Related articles: