TreeGrid v6.0
Undo & Redo
<Cfg> bool Undo [0] .
If set to 1, TreeGrid supports Undo/UndoAll and Redo/RedoAll actions, by default for CtrlZ and CtrlY events.
TreeGrid buffers all modifications since last save or reload. For server paging the buffer is cleared by any action reloading body like sort or filter.
Undo undoes the last unsaved modification. Modifications are change cell value, delete row, add row, move row, copy row.
Undo does not affect changes in Filter row and rows with NoUpload=’1’ (by default Group, Search, Tabber, Toolbar)
<I> bool NoUpload [0/1] .
If set to 1, ignores changes in this row and does not upload them to server.
If set to 1, it also does not save undo for changed cells except the cell has set Undo=’1’.
Default value is 0 for data rows and 1 for space rows.
Filter row has always set 1.
<cell> bool Undo [0/1] new 6.4 .
If the change in cell will be saved to undo list and can be undone.
By default it is set 1 for data rows and 0 for space rows. Exactly default value is set to !NoUpload.
Filter row cells have always set 0.
<Actions> Undo Attached to event OnCtrlZ and OnClickButtonUndo .
Undoes the last grid modification (cell change, add row, delete row(s), move row(s), copy row(s)).
<Actions> UndoAll Not attached to any event .
Undoes all modifications done since last save or accepting changes or reloading body or grid
<Actions> Redo Attached to event OnCtrlY and OnClickButtonRedo .
Does again the last undone action. It can be done only when between Undo and Redo was not done any other modification.
<Actions> RedoAll Not attached to any event .
Does again all undone actions. It can be done only when between Undo and Redo was not done any other modification.
<Actions> ClearUndo Not attached to any event .
Clears undo buffer.
Remember, the undo buffer is cleared automatically on save or reload or reload body.
API method bool CanUndo ( ) new 6.3 .
Returns true, if there is something to undo
API method bool CanRedo ( ) new 6.3 .
Returns true, if there is something to redo
.