SMART datagrid v.1 > Classes > GridBase
Empty and initialize grid Undo Stack.
If specify clearData parameter as true, it will also empty Undo stack of DataSet being connected to this grid.
If change undoable or DataSet.undoable instead of calling this function, it will internally empty and initialize the stack. And, if call this to empty stacks when the stack of grid or data set has not been emptied actually, onUndoStateChanged event will be fired.
$("#btnClear").click = function () {
grid.clearUndo(true);
};