SMART datagrid v.1 > Classes > DataSet
DataLudi.DataSet.canRedo method
When undoable is true, if the history of changing data set value exists and undo has ever run, it will return true.
You can check whether Undoing is possible by canUndo method.
function canRedo (): Boolean;
- Returns
- Boolean
- 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.canRedo rather than this function to check whether Redoing of data set is possible.
Code -1
$('#redo').click(function () {
if (dataset.canRedo()) {
dataset.redo();
}
}
- See Also
- Undoing Overview
- undoable
- canUndo
- undo
- redo
- clearUndo
- onUndoStateChanged
- canUndo
- canRedo
- Examples
- Undo & Redo