Kendo Ui网格自定义验证两次

时间:2015-04-22 11:41:36

标签: javascript jquery kendo-grid

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;                                         
                                    }
                                }
                            }
                        }
                    }
                }

参考: 请检查 http://demos.telerik.com/kendo-ui/grid/editing

0 个答案:

没有答案