SpreadJS Documentation
CellChanged Event
The sheet that triggered the event.
The sheet's name.
The row index of the cell.
The column index of the cell.
The sheetArea of the cell.
The name of the cell's property that has changed.
Occurs when a change is made to a cell or range of cells in this sheet that may require the cell or range of cells to be repainted.
Syntax
var instance; // Type: Events
instance.CellChanged = function(sheet, sheetName, row, col, sheetArea, propertyName) { };
CellChanged = function ( 
   sheet : Sheet,
   sheetName : string,
   row : number,
   col : number,
   sheetArea : SheetArea,
   propertyName : string
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
row
The row index of the cell.
col
The column index of the cell.
sheetArea
The sheetArea of the cell.
propertyName
The name of the cell's property that has changed.
Example
This example uses the CellChanged event.
$("#spreadContainer").data("spread").getActiveSheet().bind(GcSpread.Sheets.Events.CellChanged, function (e, info) {
    if(info.sheetArea === GcSpread.Sheets.SheetArea.viewport){
        alert("Cell index (" + info.row + "," + info.col + ")");
    }
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.