Ext GridPanel加載完數(shù)據(jù)后進行操作示例代碼
更新時間:2014年06月17日 17:41:24 投稿:whsnow
Ext GridPanel加載完數(shù)據(jù)后進行操作,比如load數(shù)據(jù)之后選定某些行數(shù)據(jù),下面有個示例,需要的朋友可以參考下
比如load數(shù)據(jù)之后選定某些行數(shù)據(jù)。
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);
相關文章
關于viewport,Ext.panel和Ext.form.panel的關系
那個深入淺出ext作者比我還懶 viewport存放Ext.panel對象,其容器中的成員可以以borderlayout方式布局2009-05-05ExtJS 2.0實用簡明教程 之Border區(qū)域布局
Border布局由類Ext.layout.BorderLayout定義,布局名稱為border。2009-04-04