Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Anil on Dec 29, 2008 22:09
open dhtmlx forum
Date validation

We are trying most of your components in our application once we are done, we are going to buy pro. version of (dhtmlxgrid, dhtmlxlayout, Accordion, data processor).

In dhtmlxgrid we need a client side date validation, can you please provide me example using data processor
Answer posted by support on Dec 30, 2008 10:04

myDataProcessor.setVerificator(3,function(value,colName){
  if(isNaN(Number(value))){
    alert("Value in 4th column should be number")
    return false;
  }else
    return true;
})

This sample demonstrates how to validate data for 4th column (index is 3) if it is numeric or not and show message (alert) if not.