freezeColumns

freezes the columns up to the specified one at runtime, starting from the leftmost one

void freezeColumns( [number column,string page] );
columnnumberoptional, the id of the last column to freeze
pagestringoptional, the name of the sheet

Example

// freezes columns A and B
$$("ssheet").freezeColumns(2, "Sheet1");

Details

If you pass 0, or the id of the column up to which the columns are already frozen, the method unfreezes the columns:

// unfreezes the columns
$$("ssheet").freezeColumns(0, "Sheet1");

If you don't pass the column parameter, the method freezes the columns up to the last column of the selected area of the active sheet. If no cells are selected, the method unfreezes the columns.

// freezes the columns up to the last column of the selected area
$$("ssheet").freezeColumns();
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix html5 ui library and page of web based spreadsheet product.