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?

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);

Thanks.
Can it undo/redo the spanning of rows and columns?

The undo|redo track only changes of cell values, all other operation not tracked.