Spread.Sheets Documentation
Using Events when Edit Mode Starts or Stops
Spread.Sheets Documentation > Sample Code > Sample Code for Frequently Used Events > 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 GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
var activeSheet = spread.getActiveSheet();

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

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

Developer's Guide