grid.getSelectionModel().selectRow(0);
grid.fireEvent("rowclick",this,0,Ext.EventObject);
给grid绑定事件即可:
listeners:{
scope:this,
rowclick:function(grid,rowIndex,event){
var row=grid.getStore().getAt(rowIndex);
if(row && row.data){
analysisReportInfo({nameEn:row.data.nameEn});
}
},
load:function(){
this.getSelectionModel().selectRow(0);
this.fireEvent("rowclick",this,0,Ext.EventObject);
}
}
grid.getSelectionModel().selectRow(0);
grid.fireEvent(‘rowclick‘,this,0,Ext.EventObject());
原文地址:http://7883830.blog.51cto.com/7873830/1619068