PDA

View Full Version : Is it possible when I click on a grid row to get the id of the row clicked



rimbaudsolaris
19 May 2010, 10:55 AM
Is it possible when I click on a grid row to get the id of the row clicked
for example the store.getAt should use the id of row clicked


Ext.MessageBox.alert( store.getAt(row_clicked).data['name'] );



listeners: {
update: function(store){

Ext.MessageBox.alert( store.getAt(0).data['name'] );

}
}

Thx for your help

Keylan
19 May 2010, 12:06 PM
Take a look at the rowclick event for the grid.