<input type="text" pattern="[A-Z0-9_]{4}" class="k-input k-textbox" name="userId" required="required" data-bind="value:userId" data-required-msg="{{UserId}}{{required}}" validationMessage="编码字符只能是大写字母,数值或下滑线中的字符!" >
1.pattern="[A-Z0-9_]{4}"
2.validationMessage="编码字符只能是大写字母,数值或下滑线中的字符!"
另外一种:
$scope.dataSource = new kendo.data.DataSource({
batch: true,
transport: {
read: {
url: $rootScope.serviceRoot+"/user/read",
dataType: "json",
type: "POST",
contentType: "application/json"
},
create: {
url: $rootScope.serviceRoot+"/user/create",
dataType: "json",
type: "POST",
contentType: "application/json"
},
update: {
url: $rootScope.serviceRoot+"/user/update",
dataType: "json",
type: "POST",
contentType: "application/json"
},
destroy: {
url: $rootScope.serviceRoot+"/user/destroy",
dataType: "json",
type: "POST",
contentType: "application/json"
},
parameterMap:function(options, operation) {
if (operation !== "read" && options.models) {
//console.log("options.models:")
//console.log(options.models);
return JSON.stringify(options.models[0]);
// return {models: kendo.stringify(options.models)};
}
}
},
schema: {
model: {
id: "id",
fields: {
id: { from: "id", type: "number" },
userId: { from: "userId",
validation:
{
required: true,
useridvalidation: function (input) {
if (input.is("[name='userId']") && input.val() != "") {
input.attr("data-useridvalidation-msg", "编码字符只能是字母,数值或下 滑线中的5个字符!");
return /^[a-zA-Z0-9_]{5}$/.test(input.val());
}
return true;
},
validationMessage:$scope.UserId+$scope.required
}
},
userName:
{ from: "userName",
validation: {
required:true,
validationMessage:$scope.UserName+$scope.required }},
email:{from:"email"},
roleId:{from:"roleId"},
telNo:{from:"telNo"},
doctorId:{from:"doctorId",type:"number"},
locale:{from:"locale"},
password:{from:"password"}
}
}
}
});
相关推荐
应用kendoui grid实现的多级分组表格展现,里面包含了表格的分组统计以及单表合计功能、还有针对表格的刷新以及子表格刷新功能。此功能是在原有demo版本上改进,增加了很多的个别需求实现,在原来的版本是做不到的。...
[Packt Publishing] 移动应用开发 Kendo UI Mobile 实现 英文版 [Packt Publishing] Building Mobile Applications Using Kendo UI Mobile and ASP NET Web API E Book ☆ 图书概要:☆ Get started with ...
ui jquery kendo ui 一个不错的国外ui kendoui 又名剑道UI ui jquery kendo ui 一个不错的国外ui kendoui 又名剑道UI
Kendo UI框架提供了强大的Excel导出功能,通过Grid的saveAsExcel能方便地导出Grid中的数据,而且格式美观大方,使用起来也非常方便。但是在实际使用中不是很理想,主要有以下两个问题: 1. 导出的列数据是原始值 ...
kendo ui的中文国际化文件。已经对日期格式化进行了修正。 详细的,请看我的博文,kendo ui那点事里有详细使用说明。
KendoUI速查手册--中文
Telerik Collection for .NET 2018 R3 kendoui.for.jquery.2018.3.911.commercial
该代码类里面实现的主要操作: 1.ajax 访问后代接口,并将结果返回值绑定到kendo ui 的grid上。 2. 实现复杂的kendo ui 的grid的表头设置,这个是本人亲自写的,并且经过验证是正确的
Telerik Collection for .NET 2018 R2 SP1 kendoui.for.jquery.2018.2.620.commercial
kendoui框架最新版本kendoui框架最新版本kendoui框架最新版本kendoui框架最新版本kendoui框架最新版本kendoui框架最新版本
Telerik Kendo UI 2013.2.716 商业完整版 2013 Q2 版本 无需序列号、无需破解,完整使用; kendo ui 是一套Telerik 公司推出的面向HTML5 及 移动设备的轻量级UI组件,其主要有Js+Css实现了入 Grid,Tree,Menu,Chart...
Kendo UI Professional目前最新提供Kendo UI for jQuery、Kendo UI for Angular、Kendo UI Support for React和Kendo UI Support for Vue四个控件。Kendo UI for jQuery是创建现代Web应用程序的最完整UI库;Kendo UI...
kendoui asp.net mvc server side wrappers , kendoui asp.net mvc 套件開版
KendoUI2016.3.19最新版KendoUI2016.3.19最新版KendoUI2016.3.19最新版KendoUI2016.3.19最新版KendoUI2016.3.19最新版
Kendo UI 包含了开发现代JavaScript所需要的所有一切,包括:强大的数据源,通用的拖拉 (Drag-and-Drop) 功能、模板和UI控件; ☆ 文件清单:☆ kendoui.aspnetmvc.2013.1.514.commercial.rar kendoui.complete....
kendoui 2016 商业完整版
Kendo UI framework is developed by Telerik - a leading provider of UI components for web, desktop and mobile applications. Trusted by over 100,000 customers worldwide for our devotion to quality and ...
本文档主要收集了Kendo UI Web的使用教程以及对比评测等。
kendo ui的学习资料,适用初学者进行全局的了解和掌握,有各种例子
KendoUI, 最棒的JQuery开发组件,没有之一