protects a cell or a range of cells from editing

void lockCell(number|object row,number|object column, [boolean state] );
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)


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

Related samples


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.