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…



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);


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?


Solved it.



I was using rowIndex instead of rowId