DevExpress ErrorText
var msg = '';
if (!eval(name).GetIsValid()) {
msg = eval(name).GetErrorText() + "\n";
}
return msg;
}
Click Event
{ alert('Validation OK');}
else
{
var ary=['txtVndrnobyOffLine','txtInvoicebyOffLine','txtEcrNobyOffLine']; //要檢查的欄位
var result='';
for( i in ary)
{
result=result+ErrorString(ary[i]);
}
alert(result);
}
開發端