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

Parameters

row
The row index.
value
Set to true to let the users resize the specified row.
sheetArea
The sheet area. If this parameter is not given, it defaults to viewport.
Example
This example prevents certain rows and columns from being resized.
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.