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);
精彩评论