您好,SpreadJS在设置保护模式后,有一些参数可以通过options来设置,API如下:
http://help.grapecity.com/spread ... eets.Worksheet.html
其中设置调整列宽行高的参数是:
protectionOptions.allowResizeColumns
protectionOptions.allowResizeRows
示例代码如下:
- var spread = GC.Spread.Sheets.findControl("ss");
- var sheet = spread.getActiveSheet();
- sheet.options.isProtected = true;
- sheet.options.protectionOptions.allowResizeRows = true;
- sheet.options.protectionOptions.allowResizeColumns = true;
复制代码 |