Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raj on May 16, 2008 05:04
open dhtmlx forum
get changed rows values in grid

Hi,

I would like to fetch all the column values of the changed rows.
I am able to get the changed rows using getChangedRows() function, but I am unable to get the column values of changed rows.


Please give me the solution, how to get the values of changed rows?

/Thanks
Raj
Answer posted by Support on May 16, 2008 05:32

to get value of any cell you can use

    grid.cells(i,j).getValue()

var ids = grid.getChangedRows().split(",")
for (var i=0; i<ids; i++)
     for (var j=0; j<grid.getColumnsNum(); j++)
         alert( grid.cells(ids[i],j).getValue());