![ContractedBlock.gif](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![ExpandedBlockStart.gif](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
this
.getStore().on({
'
load
'
:
function
(){
this .getSelectionModel().selectFirstRow();
var row = this .getView().getRow( 0 );
Ext.get(row).focus();
this .fireEvent( " rowclick " , null );
},scope: this });
this .getSelectionModel().selectFirstRow();
var row = this .getView().getRow( 0 );
Ext.get(row).focus();
this .fireEvent( " rowclick " , null );
},scope: this });
选中本行后,触发行点击事件。
this
.getSelectionModel().on({
'
rowselect
'
:
function
(){
this
.fireEvent(
"
rowclick
"
,
null
);},scope:
this
});