Ext GridPanel加載完數(shù)據(jù)后進行操作示例代碼

字號:


    ExtGridPanel加載完數(shù)據(jù)后進行操作,比如load數(shù)據(jù)之后選定某些行數(shù)據(jù),下面有個示例,需要的朋友可以參考下。
    比如load數(shù)據(jù)之后選定某些行數(shù)據(jù)。
    this相當(dāng)于當(dāng)前的GridPanel,idxs相當(dāng)于你要選中的行號
    代碼如下:
    this.store.on("load",function(store){
    this.getSelectionModel().selectRows(idxs);
    //this.selectedRows=[];
    },this);