SpreadJS 13
SpreadJS Documentation / Sample Code / Sample Code Using the Clipboard / Deactivating Pasting
In This Topic
    Deactivating Pasting
    In This Topic

    You can cancel the paste action.

    Using Code

    This example cancels the paste action.

    Copy Code
    $(document).ready(function () 
        var spread = 
        new GC.Spread.Sheets.Workbook(document.getElementById("ss"),
        var sheet = spread.getActiveSheet();
        sheet.bind(GC.Spread.Sheets.Events.ClipboardPasting, function (e, args) 
            args.cancel = true;
    See Also