Categories | Question details Back To List | ||
should i used onchnge event like this Hello, should i used on chnage event like this please tell me i want to check the my column index value 8 to database value and with the help of "07_basic_validation_with_message.html" example we will allow only validation for not empty but i dnt want that validation i m apply my own validation is it possible using on chnage event please reply me as soon as possible. mygrid.attachEvent("onChange",function(row_id,column_index){ if(column_index==8) { alert(value6); var value6 = this.cells(row_id,8).getValue(); validate_user(value6); } }) regards Suraj Answer posted by dhxSupport on Dec 18, 2009 01:47 Better to use setVerificator dataProcessor's method: myDataProcessor.setVerificator(1, not_empty); .. function not_empty(value) { return value != ""; } Please find examples here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/04_dataprocessor/05_basic_validation.html http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/04_dataprocessor/06_basic_validation_with_marks.html http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/04_dataprocessor/07_basic_validation_with_message.html And tutorial here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxdataprocessor:validation http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:validation_extension |