Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Fabio on Mar 28, 2008 08:29
open dhtmlx forum
OnChange state

Hi,
I have done a button to change the value for a cell:
=> click the button and run mygrid.cells(1,0).setValue(1);
the problem is that row don't switch to OnChange state....

How to fix it?

thx,
Fabio
Answer posted by Support on Mar 28, 2008 15:46
The "changed" flag of the cell triggered only if edit action triggered by user and not set if data was changed through API
You can use next code to set flag directly
    mygrid.cells(1,0).cell.wasChanged=true;
If you are using dataProcessor - you can trigger row updated as
    dataproc.setUpdated(rowId,true);