Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by UdhayabalaChandar C on May 06, 2008 05:46
open dhtmlx forum
The grid.cells2(i,0).cell.wasChanged=true was not update

Hi,
I change the Cell Value using the
mygrid.cells(i,1).getValue()

mygrid.cells(i,1).setValue(varTaskName);

mygrid.cells(i,1).cell.wasChanged=true;

And click Save button the data are not updated..I am using dataprocessors

I want to perform this action when Grid is saved

I am using dataprocessors for Saving the Data in the Grid for Cell edit...for this I am using JSP and Struts..

Answer posted by Support on May 07, 2008 02:00
The next line   
    mygrid.cells(i,1).cell.wasChanged=true;
changes the inner state of cell, so row will be counted as changed during serialization, or may be used in case of FORM integration.

For dataprocessor you need to directly mark row as updated

    mygrid.cells(i,1).setValue(varTaskName);
    dataproc.setUpdated(i,true);
Answer posted by Gerben on Jul 02, 2008 06:32

Hi,

Iam trying te same but got an javascript error after the:

myDataProcessor.setUpdated(i,true);

'childNodes is null or not an object'

Anyone an idea?

Answer posted by Gerben on Jul 02, 2008 07:58

Solved it.

I was using rowIndex instead of rowId