SMART datagrid v.1 > Classes > DataSet

[ grids ver.1.3.0]   Back  Forward

DataLudi.DataSet.canUndo  method

When undoable is true, if the changed history which can restore by calling methods of data set exists, it will return true

You can check whether Redoing is possible by canRedo method. 

function canUndo (): Boolean;
Returns
Boolean
Note
Code -1
    $('#undo').click(function () {
        if (dataset.canUndo()) {
            dataset.undo();
        }
    }
See Also
Undoing Overview
undoable
canRedo
undo
redo
clearUndo
onUndoStateChanged
canUndo
canRedo
Examples
Undo & Redo