Categories | Question details Back To List | ||
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("<b style='color:blue;'>Uwaga:</b> kliknij dwa razy <b>"+colName+ "</b> 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 Answer posted by dhxSupport on Apr 01, 2009 04:12 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){ Please see more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Dataprocesor_usage.html#grid_art_dataprocessor |