Posted 18 July 2022, 1:17 pm EST
For example, I want to exclude autoFitColumn and autoFitRow from the undo stack.
Is there a way to do so?
Forums Home / Spread / SpreadJS
Posted by: frederik.beaudry on 18 July 2022, 1:17 pm EST
Posted 18 July 2022, 1:17 pm EST
For example, I want to exclude autoFitColumn and autoFitRow from the undo stack.
Is there a way to do so?
Posted 19 July 2022, 12:25 am EST
Hi,
We are sorry but we can not manipulate the undo-redo stack. However, if you want not to undo the inbuilt commands you could use the following code snippet.
GC.Spread.Sheets.Commands.autoFitColumn.canUndo = false;
GC.Spread.Sheets.Commands.autoRow.canUndo = false;
list of Commands: https://www.grapecity.com/spreadjs/docs/latest/online/SpreadJS~GC.Spread.Sheets.Commands.html
Regards,
Avinash