Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad Welekar on Jul 11, 2008 11:19
open dhtmlx forum
undo/redo

Hi Support,

modification caused by API calls will not be stored in history.

I actually want to undo/redo all changes which caused by user and by API.
Is it possible?How?
Answer posted by Support on Jul 14, 2008 02:23
Existing solution monitors only cell edit operation ( so it will not store any info about row adding|deleting )
In case of changing cell value by API, you can use next code to store change in undo|redo history.

    var old_one=grid.cells(i,j).getValue(); // get old value
    grid._onEditUndoRedo(2,i,j,old_one,new_one); // store operation in undo history
    grid.cells(i,j).setValue(new_one);
Answer posted by Prasad on Jul 14, 2008 05:57
Thanks.
Can it undo/redo the spanning of rows and columns?

Answer posted by Support on Jul 14, 2008 06:25
The undo|redo track only changes of cell values, all other operation not tracked.