mysticav
22 Mar 2007, 8:39 PM
How can I select a grid row by its ID ?
The ID defined with Ext.data.JsonReader :
var reader = new Ext.data.JsonReader({
root: 'myRoot',
totalProperty: 'totalCount',
id: 'id'
}, Record);
Instead of:
grid.getSelectionModel().selectRow(index);
I'm looking for something like:
grid.getSelectionModel().selectRowById(id);
(The id is the actual primary key record from database table).
The ID defined with Ext.data.JsonReader :
var reader = new Ext.data.JsonReader({
root: 'myRoot',
totalProperty: 'totalCount',
id: 'id'
}, Record);
Instead of:
grid.getSelectionModel().selectRow(index);
I'm looking for something like:
grid.getSelectionModel().selectRowById(id);
(The id is the actual primary key record from database table).