function numCheck(num) {
var numRE = /^\d+$/ ;
if (numRE.exec(num)) {
return true;
} else {
return false;
}
};
obj.onCellEditStarted = function(a,column,row)
{
oldtext = this.getCellText(column,row);
}
obj.onCellTextChanged = function(a,column,row)
{
if ( column==2 )
{
var newtext = this.getCellText(column,row);
if ( !numCheck( newtext ) )
{
alert("olmaz "+a);
a = "5";
this.setCellText(oldtext, column, row);
return false;
}
}
if (obj.getRowCount()>0)
{
setDirty(row);
}
}
This topic is archived.