SpreadJS Documentation
Preventing Resizing

You can prevent resizing.

Using Code

This example prevents resizing.

JavaScript
Copy Code
$(document).ready(function () {
    var spread = new GcSpread.Sheets.Spread($("#ss").get(0),{sheetCount:3});
    var sheet = spread.getActiveSheet();

    //Prohibit resizing of Column 2.
    sheet.setColumnResizable(1, false);

    //Prohibit resizing of Row 2 to Row 3.
    sheet.setRowResizable(1, false);
    sheet.setRowResizable(2, false);
});
See Also

Developer's Guide

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.