SMART datagrid v.1 > Classes > DataSet
DataLudi.DataSet.undo method
If call to change the value of data set, call history will be stored in Undo Stack, and if call this method, it will return the latest call.
You can check whether Undoing is possible in current data set by calling canUndo.
function undo ();
- Returns
- Void
- Note
- In grid application, it manages Undo stack of data set through the property or methods of Grid connected to this data set rather than data set. You can also call GridBase.undo rather than this function to do Undo of data set.
- If call this method to actually run Undoing, GridBase.onUndoStateChanged event will be fired.
Code -1
$('#undo').click(function () {
dataset.redo();
}
- See Also
- Undoing Overview
- undoable
- redo
- canUndo
- canRedo
- clearUndo
- onUndoStateChanged
- redo
- Examples
- Undo & Redo