Spread.Sheets 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 GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
    var sheet = spread.getActiveSheet();

    sheet.bind(GC.Spread.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.