SMART datagrid v1.4 > Classes > DataSet

[ grids ver.1.3.0]   Back  Forward

DataLudi.DataSet.onCommandStackChanged  event

데이터셋의 Undo 스택에 변경이 있을 때 즉, 새로운 변경 호출이 추가됐거나, undo, redo가 실행되면 발생한다. 

function onCommandStackChanged (ds: DataSet, canUndo: Boolean, canRedo: Boolean);
Returns
Void
Parameters
ds - DataSet.
canUndo - Boolean.
canRedo - Boolean.
Code -1
    ds.onUndoStateChanged = function (grid, canUndo, canRedo) {
        document.getElementById('btnUndo').disabled = !canUndo;
        document.getElementById('btnRedo').disabled = !canRedo;
    };
See Also
Undoing 개요
undo
redo
GridBase.UndoStackChanged
Examples
Undo & Redo