Kendo Ui网格自定义验证已启动两次
我的编码
schema: {
model: {
id: "StaffID",
fields: {
StaffName: { validation: { required: true } },
RoleID: { field: "RoleID", type: "number", defaultValue: 2 },
Username: { validation: { required: true } },
Password: { validation: { required: true } },
Email: {
validation: {
email: true, required: true,validateOnBlur: false,
EmailValidation: function(input)
**// This is fired twice**
{
var valid = CheckEmailValidate(input,dataSource,dataItem);
return valid;
}
}
}
}
}
}