PDA

View Full Version : Obtain the column value of selected row in a grid



janixams
9 Jun 2008, 2:10 PM
Hi all,
I have a doubt, I use this code to obatain the row 'id' on rowdblclick grid event:


grid.on('rowdblclick', function(){
var seleccionada = grid.getSelectionModel().getSelected();
//alert(seleccionada.id);
});

So, I need to know how can I use this 'id' to obtain the data that is contained in this row.
For exaple, supposing that I have a grid with a column wich recieve names, I need to obtain this name when the row is selected. Of course the name cover only a cell but I really want to take others fields.
So, how can I take this column value?
Any idea?