I am using a form to update the database and not via the row in the grid.
The form is vertical (not horizontal) similar to the form shown here: dhtmlx.com/docs/products/dht … xcell.html?
The form is generated by xml and the database is updated via dhtmlxDataProcessor.
Is it possible to use the db.setVerificator(cindex) option in a vertical form? I’d like to use the built-in verification in dhtmlxDataProcessor.
If not possible, can you suggest another method? Should I use the onEditCell event?
Functions , assigned by setVerificator can be assigned for columns only, but you can use next functionality to change behavior ( dataprocessor 2.1+ required )
gp.setVerificator(1, function(value, id, index){ //1 - index of data column
switch(id){
case “r1”: return verification_for_row_1(value,id,index);
case “r2”: return verification_for_row_2(value,id,index);
case “r3”: return verification_for_row_3(value,id,index);
}
return true;
});
where r1-r3 ids of rows, and verification_for_row_1 - custom verification methods, which will be called for related rows.