SMART datagrid v.1 > Classes > GridBase

[ grids ver.1.3.0]   Back  Forward

DataLudi.GridBase.redo  method

When update the existing row or edit the appended row in grid, if undo has been run before, it will run Undoing of just now again and move the focus to the corresponding cell as well. 

If it is not row editing state in grid, it will run Redoing of data set connected to this grid. And, if actually run Redoing, onUndoStateChanged event will be fired. 

You can call canRedo to check whether Redoing is possible in current grid or data set. 

function redo ();
Returns
Void
Code -1
    $("#btnRedo").click = function () {
        grid.canRedo() && grid.redo();
    });
See Also
Undoing Overview
undoable
undo
onUndoStateChanged
canUndo
canRedo
clearUndo
Examples
Undo & Redo