SMART datagrid v.1 > Classes > DataSet
DataLudi.DataSet.clearUndo method
Empty and initialize Undo Stack of data set.
If change undoable rather than calling this method, it will internally empty and initialize the stack.
function clearUndo ();
- 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 call GridBase.clearUndo rather than this function to remove Undo stack of data set.
- If call this method to actually empty nonempty stack, GridBase.onUndoStateChanged event will be fired.
Code -1
$("#btnClear").click = function () {
dataSet.clearUndo(true);
};
- See Also
- Undoing Overview
- undoable
- canRedo
- canUndo
- undo
- redo
- GridBase.clearUndo
- GridBase.onUndoStateChanged
- Examples
- Undo & Redo