SpreadJS Documentation
Deactivating Pasting

You can cancel the paste action.

Using Code

This example cancels the paste action.

JavaScript
Copy Code
$(document).ready(function () {
    var spread = new GcSpread.Sheets.Spread($("#ss").get(0),{sheetCount:3});
    var sheet = spread.getActiveSheet();

    sheet.bind(GcSpread.Sheets.Events.ClipboardPasting, function (e, args) {
        args.cancel = true;
    });
});
See Also

Developer's Guide

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.