dataProcesor.setVerificator is broke n in last grid?

I try to use setVerivicator:



myDataProcessor.setVerificator(0,checkIfNotEmpty);    



where:



function checkIfNotEmpty(value,colName){

     if(!value || value.toString()._dhx_trim()==""){

     showMessage("Uwaga: kliknij dwa razy “+colName+ " aby edytować wartość”);

     return false

     }else

     return true;

    }



(…)



in colName I got “1238578705434” instead of text column name, I have correct setHeader definitions, tested on 2 different grids.



In previous version of grid everything was working OK


Since version 2.1. verification function receive different paramethers - id of a row and column index. To get column name you can use method getColumnLabel(cin, ind) //cin - column index, ind - index of a header row (in case of the multirow header)


function checkIfNotEmpty(value,rowId,cellIndex){
if(!value || value.toString()._dhx_trim()==""){
showMessage("Uwaga: kliknij dwa razy “+mygrid.getColumnLabel(cellIndex)+ " aby edytować wartość”);
return false
}else
return true;
}


Please see more information here dhtmlx.com/docs/products/dhtmlxG … aprocessor