SpreadJS Documentation
Using Events when Data Changes
SpreadJS Documentation > Sample Code > Sample Code for Frequently Used Events > Using Events when Data Changes

You can use events when the data in a cell changes.

Using Code

This example uses the EditChange event.

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.EditChange, function (sender, args) {
    console.log("Cell (" + args.row + ", " + args.col + ") data has been changed.")
});