Hello,
i’ve a grid with 3 cells
grid.setColTypes("ro,ch,ch");
grid.init();
grid.enableUndoRedo();
‘dhtmlxgrid_undo.js’ is called too and i attach a DataProcessor to grid. DataProcessor.setUpdateMode is (“row”,“off”) and modified datas must save by user manually by click on a “Save” button.
Now i get two records from server:
<?xml version="1.0" encoding="UTF-8"?>
<rows>
<row id="1">
<cell><![CDATA[Test1]></cell>
<cell>0</cell>
<cell>0</cell>
</row>
<rows>
<row id="2">
<cell><![CDATA[Test2]></cell>
<cell>0</cell>
<cell>0</cell>
</row>
</rows>
The user click on checkbox in row 1, cell 1 => This record is modified. Ok
The user click on checkbox in row 2, cell 1 => This record is modified. Ok
Now the user click on an “Undo” Button and i call
grid.doUndo();
The checkbox in second row is set to ‘not checked’ and the row is again not modified. After this the user click “Undo” again, the other checkbox is set to ‘not checked’ and no records have been changed.
But when the user click on “Save” button to execute “DataProcessor.sendData()” the event will be firedand the DataProcessor will save modified datas!?!?!?!
Why this, not record is still modified?
Regards, Carsten