开发者

EXTJS GridPanel Selection Model

开发者 https://www.devze.com 2023-03-01 07:03 出处:网络
I have a GridPanel, when i am binding the GridPanel from database, bydefault some rows should be selected.

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

精彩评论

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