lockCell

protects a cell or a range of cells from editing

void lockCell(number|object row,number|object column, [boolean state,string page] );
rownumber|objectthe row id or the row and column numbers of the first cell in the range
columnnumber|objectthe column id or the row and column numbers of the last cell in the range
statebooleantrue - to lock a cell, false - to unlock it (true by default)
pagestringoptional, the name of the sheet

Example

// locks one cell
$$("ssheet").lockCell(2, 3, true);
// locks a range of cells
$$("ssheet").lockCell({row:1, column:1}, {row:7, column:3}, true, "Sheet1");

Related samples

Details

If the cell isn't specified, the selected cell will be locked.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix html5 framework and page of web spreadsheet product.