开发者

EXTJS GridPanel Selection Model

I have a GridPanel, when i am binding the GridPanel from database, bydefault some rows should be selected. how can i do this. can u please he开发者_如何学JAVAlp me.


try this

Ext.getCmp('grid').getSelectionModel().selectRow(RowIndex);


var grid = Ext.ComponentQuery.query('NameOfYourGridAlias');
grid[0].getSelectionModel().select(RowIndex);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜