SpreadJS Documentation
setColumnResizable Method
The column index.
Set to true to allow users to resize the column.
The sheet area. If this parameter is not given, it defaults to viewport.
Sets whether users can resize the specified column in the specified sheet area.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var returnValue; // Type: any
returnValue = instance.setColumnResizable(col, value, sheetArea);
function setColumnResizable( 
   col : number,
   value : boolean,
   sheetArea : SheetArea
) : any;

Parameters

col
The column index.
value
Set to true to allow users to resize the column.
sheetArea
The sheet area. If this parameter is not given, it defaults to viewport.
Example
This example sets the setColumnResizable method.
sheet.setRowResizable(3,false,GcSpread.Sheets.SheetArea.viewport);
sheet.setColumnResizable(3,false,GcSpread.Sheets.SheetArea.viewport);
sheet.getRow(1,GcSpread.Sheets.SheetArea.viewport).resizable(false);
sheet.getColumn(1,GcSpread.Sheets.SheetArea.viewport).resizable(false);
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.