onBeforeValueChange

fires before the value of a cell is changed

boolean onBeforeValueChange(number row,number column,string newValue,string oldValue);
rownumberthe row id
columnnumberthe column id
newValuestringthe new value
oldValuestringthe old value
booleanreturning false will prevent changing the value of a cell

Example

$$("ssheet").attachEvent("onBeforeValueChange",function(row,column,newValue,oldValue){
    // your code here
    return true;
});

Back to top
If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of spreadsheet javascript library product.