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:01 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

Animal
19 May 2010, 10:13 AM
In the FAQ

CrazyEnigma
19 May 2010, 12:52 PM
This is the third time you posted this question. Please don't make the forum a medium for junk mail.

rubynile
19 May 2010, 11:30 PM
I hope this will help you



grid.on('cellclick', function(grid,row,column) {

a=row;


}, grid);