SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.undoable  property

If it is true, the user can run Undoing, Redoing by typing Ctrl+Z, Ctrl+Y keys. 

Even if undoable or undoable is true, if this property is false, the user cannot run Undoing, Redoing. You can also use Undoable Function of data set regardless of UI. 

Defaults to true.

Getter
function undoable(): Boolean
Setter
function setUndoable(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            undoable: true
        }
    });
Code -2
    grid.setEditOptions({
        undoable: true
    });
Code -3
    grid.editOptions().setUndoable(true);
See Also
DataSet.undoable
GridBase.undoable
Undoing Overview
Examples
Undo & Redo