PDA

View Full Version : rowdblclick - how to get data?



lormitto
28 Feb 2010, 10:48 PM
Could you please tell me how to retrieve data from row in EditorGridPanel?

I've got code like this:



...
listeners:{ rowdblclick: function(grid, rowIndex, e) { Ext.Msg.alert("double click on row " + rowIndex + ""); }},
...

and no idea what to do to place in alert "id" field in row...

Animal
1 Mar 2010, 12:42 AM
OK, let's go step by step.

Where is the data which that grid uses stored?

fay
1 Mar 2010, 3:56 AM
listeners:{ rowdblclick: function(grid, rowIndex, e)
{
var r = grid.getStore().getAt(rowIndex);
// Put a BP here and inspect "r" to see the available properties/methods.
}},

lormitto
1 Mar 2010, 2:16 PM
Thank you very much for all your help


now it's time to make another step :)


Thank you again