Check documentation for the latest version of dhtmlxSuite onEditCell DHTMLX Docs

onEditCell

fires 1-3 times depending on cell's editability (see the stage parameter)

mixed onEditCell(number stage,string|number rId,number cInd,number nValue,number oValue);
stagenumberthe stage of editing (0-before start; can be canceled if return false,1 - the editor is opened,2- the editor is closed)
rIdstring|numberthe id of a row
cIndnumberthe index of a cell
nValuenumbera new value (only for the stage 2)
oValuenumberan old value (only for the stage 2)
mixedtrue - editing is confirmed, false - editing is canceled; or a new value of the cell

Available only in PRO Edition

Example

grid.attachEvent("onEditCell", function(stage,rId,cInd,nValue,oValue){
    // your code here
});

Details

the event is commonly used for validation

Back to top