SpreadJS 13
SpreadJS Documentation / Sample Code / Sample Code for Rows and Columns / Preventing Resizing
In This Topic
    Preventing Resizing
    In This Topic

    You can prevent resizing.

    Using Code

    This example prevents resizing.

    Copy Code
    $(document).ready(function () 
        var spread = 
        new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{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