SpreadJS Documentation
ColumnWidthChanging Event
The sheet that triggered the event.
The sheet's name.
The list of columns whose widths are changing.
Whether the columns are row header columns.
A value that indicates whether the operation should be canceled.
Occurs when the column width is changing.
Syntax
var instance; // Type: Events
instance.ColumnWidthChanging = function(sheet, sheetName, colList, header, cancel) { };
ColumnWidthChanging = function ( 
   sheet : Sheet,
   sheetName : string,
   colList : Array,
   header : boolean,
   cancel : boolean
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
colList
The list of columns whose widths are changing.
header
Whether the columns are row header columns.
cancel
A value that indicates whether the operation should be canceled.
Example
This example uses the ColumnWidthChanging event.
$("#spreadContainer").data("spread").getActiveSheet().bind(GcSpread.Sheets.Events.ColumnWidthChanging, function (e, info) {    
        alert("Column (" + info.colList + ")");
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.