Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rich on Feb 26, 2008 12:02
open dhtmlx forum
dhtmlGrid 1.5 - setValue() not setting changed state

Hi,

I am setting the value of a cell with JavaScript by invoking the setValue method. Although the value on the screen is updated, the changed state is not. This problem occurs when I serialize the grid and send it to the server; there is no changed attribute in the document. I tried explicitly setting the wasChanged attribute to true, but that did not work eitherl.

any ideas?
Answer posted by Support on Feb 27, 2008 01:56
>> setValue() not setting changed state
This is expected behavior, changed state triggered only if data was changed by direct edit operation. Changes by API don't trigger "changed" state.
Basically you can set state manually by
    grid.cells(i,j).cell.wasChanged=true;