
Chus Periago - 2010-10-15 15:08:11
Hello!
First of all, congratulations for this fantastic tool!
I'm trying to get another column value, when OnClick is activated... As i read, I have the following in php file:
var thegrid = new drasticGrid('grid1', {
pathimg:"img/",
pagelength: 30,
columns: [
{name: 'idCliente', displayname: 'idCliente', editable: false, width: 100},
{name: 'nombre', displayname: 'Nombre', editable: false, width: 200},
{name: 'direccion', displayname: 'Dirección', editable: false, width: 250},
{name: 'cp', displayname: 'CP', editable: false, width: 60} ,
{name: 'poblacion', displayname: 'Población', editable: false , width: 200}
],
sliderposition: "right",
onClick: function(id,someothercol){thegrid.DefaultOnClick(id); alert('clicked on row with id and col value = '+id+','+someothercol)}
});
And I modified the JS:
fireEvent("onClick", t.data[0][this.ddid], t.data[1][this.ddid][2]);
But it doesn't works, always appears 1,undefined
What is the problem?
Thanks