Check documentation for the latest version of dhtmlxSuite validateCell DHTMLX Docs

validateCell

forces validation of a specific cell

void validateCell(string|number id,number index,function rule);
idstring|numberthe id of the cell's row
indexnumberthe index of the cell's column
rulefunctionthe validation function

Example

mygrid.validateCell(1,1);//when a cell has some validator(s) assigned already
//or
 
//when a cell doesn't have any validators assigned
mygrid.validateCell(1,1,dhtmlxValidation.isValidTime);
 
//or 
dhtmlxValidation.isMin4=function(data){ 
    return data.length>=4;    // the length of data should be more than 4 symbols
};
mygrid.validateCell(1,1,dhtmlxValidation.isMin4);

Back to top