janixams
9 Jun 2008, 7:33 AM
Hi all,
I have a grid and I take the row ID on rowdblclick event, but I don't know how to identify this ID with the data in the store. I need to know how to retrieve the data from selected row in the grid. :(
I use the fallowing:
[PHP]
var solicitud = {
init :function(){
var datos = [
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente']
];
var ds = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(datos),
reader: new Ext.data.ArrayReader({}, [
{name: 'nombre'},
{name: 'fecha', type: 'date', dateFormat: 'm/d/Y'},
{name: 'estado'}
])
});
ds.load();
var colModel = new Ext.grid.ColumnModel([
{
id:'nombre',
header: "L
I have a grid and I take the row ID on rowdblclick event, but I don't know how to identify this ID with the data in the store. I need to know how to retrieve the data from selected row in the grid. :(
I use the fallowing:
[PHP]
var solicitud = {
init :function(){
var datos = [
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente'],
['3m Co','09/01/2008','pendiente']
];
var ds = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(datos),
reader: new Ext.data.ArrayReader({}, [
{name: 'nombre'},
{name: 'fecha', type: 'date', dateFormat: 'm/d/Y'},
{name: 'estado'}
])
});
ds.load();
var colModel = new Ext.grid.ColumnModel([
{
id:'nombre',
header: "L