hiii
I am using Dhtmlx grid 2.1. I want to validate the email field such that only email value should be accepted in the cell. This is the code I am using so please help me out
I want the E-mail field validation
Rajendra Bhattacharya
P I Infosoft Private Limited
63 A, Ber Sarai
New Delhi - 110016
Mobile: 9990855016
Tel: 11-26536766
DhtmlxGrid version 2.1 hasn’t inbuild functionality wich allow you validate cell’s values automatically. But you can use “onEditCell” event to check what value was inserted to the cell:
mygrid.attachEvent(“onEditCell”,function(stage,rowId,cellIndex,newValue,oldValue){
if (stage==2&&cellIndex==3){
//your validation code here
//newValue - new inserted cell’s value
}
return true;
});