SpreadJS Documentation
Using Events when Edit Mode Starts or Stops

You can use events when edit mode starts or stops.

Using Code

This example uses the EditStarting and EditEnded events.

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

activeSheet.bind(GcSpread.Sheets.Events.EditStarting, function (sender, args) {  
    console.log("Start cell editing.");
});

activeSheet.bind(GcSpread.Sheets.Events.EditEnded, function (sender, args) {
    console.log("Finish cell editing.");
});
See Also

Developer's Guide

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.