Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Naish on Sep 04, 2007 17:34
open dhtmlx forum
dhtmlxgrid

Hi,
I want to get the data from a selected row. I can get the id by getSelectedId(). I think that I have to use the getUserData(row_id,name) function but I don't know to what refers de parameter name of getuserdata().
I load data from a database and not from and xml. I saw that in the .xml are defined the userdatas but I don't know how to do it if the data is loaded from a database.
Thanks in advance.
Naish
Answer posted by Stanislav on Sep 04, 2007 19:34
If you need to get data from grid cells you can use

var rowId=grid.getSelectedId();
var data= grid.cells(rowId, index).getValue();

where index - zero based of column in question