How can I exclude certain actions from the undoManager?

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

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels