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

Parameters

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

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.