SpreadJS 13
GC.Spread.Sheets Namespace / Events type / ColumnChanging 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.
In This Topic
    ColumnChanging Event
    In This Topic
    Occurs when before 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.ColumnChanging = function(sheet, sheetName, col, sheetArea, propertyName) { };
    ColumnChanging = function ( 
       sheet : Worksheet,
       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 ColumnChanging event.
    activeSheet.bind(GC.Spread.Sheets.Events.ColumnChanging, function (e, info) {
        if(info.sheetArea === GC.Spread.Sheets.SheetArea.viewport){
            alert("Index (" + info.col + ")");
        }
    });
    See Also

    Reference

    Events type