forces validation of a specific cell
id | string|number | the id of the cell's row |
index | number | the index of the cell's column |
rule | function | the validation function |
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