Hello,
Please use the following code, I had the same issue But the following code works for me,
Example to check the entered cell value is a whole number
var curCell = igtbl_getCellById(itemName);
var curCellValue = curCell.Element.innerText;if (isNaN(curCellValue) || curCellValue.indexOf('.') != -1)
{
alert('('+curCellValue +') is not a whole number, Please enter a whole number');
curCell.setValue(prevCellValue,
false); // Hold the previous value from the before enter edit mode handlercurCell.setSelected(true);
curCell.activate();
curCell.beginEdit();return false;
}
Regrads,
Chaitanya…