DHTMLX Docs & Samples Explorer

Index
dhtmlxdataprocessor
API Methods

### setVerificator(ind,verifFunction)

Required library edition:
Required library file: dhtmlxdataprocessor.js

specify column which value should be varified before sending to server

- 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

       //check if first column values is not equal to 0
       myDataProcessor.setVerificator(0,greater_0);
       function greater_0(value){
    	return value>0;
       }

       //check if second column values is not empty
       myDataProcessor.setVerificator(1,not_empty);
       function not_empty(value,id,ind){
    	if (value=="") mygrid.setCellTextStyle(id,ind,"background-color:yellow;");
    	return value!="";
       }