validation

hi team

tahnks a lot for the previous answer i want to chek if all the fields in edited by the user in the data grid have a value (non empty) before saving in the dada base

what type of code can i add in my following js fuction :

function sendData ()

{myDataProcessor.sendData();}

please help me

thanks


You can


a) use built in verificatiors
dhtmlx.com/docs/products/dhtmlxG … 7950168000



//verify if the value of 2nd column (zero-based numbering is 1) is not empty
myDataProcessor.setVerificator(1)




b) use custom code as


var ids=mygrid.getChangedRows().split(",");
for (var i=0; o<ids.length; i++)
mygrid.forEachCell(ids[i],function(c,index){
if (!c.getValue()) alert(“empty cell”);
}