Categories | Question details Back To List | ||
dhtmlxDataProcessor using a form 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: http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/cell_types/pro_col_excell.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? Answer posted by Support on Jun 15, 2009 05:15 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. |