Categories | Question details Back To List | ||
Combo Cell Validation in Firefox I am using dhtmlxSuite_2009Rel1_pro_90226 with a grid and a combo column. I am also using a dataprocessor with dp.setVerificator(12); to verify a selection in the combo column. I load the combo as follows: var custodianCombo = equipGrid.getColumnCombo(12); custodianCombo.loadXML("xml/getCustodianList.jsp",function(){equipGrid.load("xml/getEquipmentGrid.jsp",function(){equipGrid.refreshFilters();},"xmlA");}); Everything works fine in IE8 However in Firefox as soon as i change the combo it no longer validates. no mater what I select. My XML for the combo is as follows: <complete add="true"> <option value="1"> Office 1 </option> <option value="2"> Office 2 </option> </complete> how can i get this to work in firefox? Answer posted by dhxSupport on Dec 08, 2009 01:53 setVerificator method require 2 parameters: ind - column index (0 based) verifFunction - function (object) which should verify cell value (if not specified, then value will be compared to empty string). Three arguments will be passed into it: value, row ID and column index To validate column with combo you should use: dp.setVerificator(COLUMN_INDEX,not_empty) ... function not_empty(value){ return value!=""; } Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxdataprocessor:api_method_dataprocessor_setverificator |