Spread.Sheets Documentation > Sample Code > Sample Code Using the Clipboard > Deactivating Pasting |
You can cancel the paste action.
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; }); }); |