Setting "wasChanged" has no effect

I am using a popup window to set values in a column. I can set the value and see the change, but setting the “wasChanged” flag produced no effect - the row style doesn’t change visually and when I save the data, the value is not saved to database. Here is the code, which is inside the handler of “onRowDblClicked”:

mainGrid.cells(mainRowId,mainColumnIndex).cell.innerHTML="jjj";
mainGrid.cells(mainRowId,mainColumnIndex).cell.wasChanged=true;

Here “mainGrid” is a global variable. I can see that the cell’s value is changed to “jjj”.

I also tried to create a cell object first, then assign “wasChanged”, but that didn’t work either.
Is there another way to flag the change?

To change cell value you should use setValue() method:

grid.cellById(row_id,cell_index).setValue(“jjj”)

If you are using DataProcessor to send data to the server side, you may use following code to mark row updated:

dp.setUpdated(row_id,true);

docs.dhtmlx.com/doku.php?id=dhtm … sks_errors
docs.dhtmlx.com/doku.php?id=dhtm … tupdated&s[]=setUpdated

Thank you for the tip - setUpdated() works (but “wasChanged=true” doesn’t).

Another issue I am facing is: when I populate a cell in the grid by clicking on the popup calendar window, the cell value is first set, but then when I click the mouse any where,

(1) On IE7, that value disappears and the cell becomes empty.
(2) On Firefox, that value also disappears, but the old value comes back.

I can manually edit other cells without similar problem. I return “true” from the “onClick” handler of calendar.

My question is: how do I make the new value stay in the cell?

What eXcell type are you using? We cannot reproduce this issue locally with “dhxCalenar” and “dhxCalenadrA” eXcell types.