I want validation in my grid.
if i add new row then existing row’s cell cann’t be blank.
if blank then alert comes and new row not added.
i also want only numeric values entered in cell3
Thanks & Regards
Anuj Sharma
i also want only numeric values entered in cell3
mygrid.attachEvent(“onEditCell”,function(stage,id,ind,value){
if (stage==2 && ind == 3 && (parseFloat(value)!=value) ) return false;
return true;
});
>>if blank then alert comes and new row not added.
var check = true;
mygrid.forEachRow(function(id){
if (mygrid.cells(id,3).getValue=="") check = false;
})
if (check) mygrid.addRow(…