SMART datagrid v.1 > Classes > GridBase

[ grids ver.1.3.0]   Back  Forward

DataLudi.GridBase.undoable  property

If specify as true, when the user updates the existing grid rows or appends the rows, he can Undo/Redo cell editing. 

In order to Undo/Redo DataSet change, you should specify DataSet.undoable as true. In order to provide Undo/Redo UI to the user, both properties will usually be specified as true. Please refer to Undoing Overview page. 

If this property is changed, the existing grid Undo stack will be initialized. In other words, the existing edit history will not be Undone. 

Defaults to false.

Getter
function undoable(): Boolean
Setter
function setUndoable(value: Boolean)
Code -1
    $("chkUndo").click = function () {
        grid.setUndoable(this.checked);
        ds.setUndoable(this.checked);
    });
See Also
Undoing Overview
DataSet.undoable
undo
redo
claerUndo
canUndo
canRedo
Examples
Undo & Redo