0
votes

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 help me.

2

2 Answers

2
votes

try this

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