CanUndo field for clipboardPaste command?

Posted by: c-arunkh on 7 August 2018, 3:43 am EST

    • Post Options:
    • Link

    Posted 7 August 2018, 3:43 am EST

    Hi Team,

    We having been following http://help.grapecity.com/spread/SpreadSheets11/webframe.html#sccopy.html

    to copy and paste the content through code in spreadJS. After doing that, If I do Ctrl+z, it just undo what I did through code. We don’t want this happen.

    Doing spread.options.allowUndo=false; makes it work, but its disabling the ctrl+z operation.

    spread.commandManager().execute({cmd: “clipboardPaste”, sheetName: “Sheet1”, fromSheet: sheet, fromRanges: fromRange, pastedRanges: toRanges, isCutting: true, clipboardText: “”, pasteOption: GC.Spread.Sheets.ClipboardPasteOptions.all});

    Is there is way to pass canUndo field as false,to above command.

  • Posted 7 August 2018, 10:12 am EST

    Hello,

    You can create a custom undo action using the code given in the documentation here:

    http://help.grapecity.com/spread/SpreadSheets11/webframe.html#undo.html

    Or you can simply handle the Ctrl+Z key event.

    Thanks,

    Deepak Sharma

Need extra support?

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

Learn More

Forum Channels