Categories | Question details Back To List | ||
dhtmlxgrid validations for mandatory fields Hi, Is there any way to validate the mandatory fields and showing message to the user if mandatory fields are not entered by the use. Thanks in Advance. Regards, Dilip Answer posted by dhxSupport on Mar 24, 2009 09:24 If you need alert after user doesn't enter anything into the mandatory cell you can use "onEditCell" event: mygrid.attachEvent("onEditCell",function(stage,rowId,cellIndex,newValue,oldValue){ if ((stage==2)&&(rowId==mandarotyRowId)&&(cellIndex==mandatoryCellIndex)&&(newValue=="")){ alert("Cell's value is empty"); } return true; }); |