我想将自定义属性添加到模型字段。我可以将data-email-msg
作为属性添加到Kendo Grid
中的字段。(请查看我的示例以及我如何添加它...)
这是一个例子......
$("#grid").kendoGrid({
columns: [ {
field: "name",
title: "Name",
attributes: {
"class": "table-cell",
style: "text-align: right; font-size: 14px",
data-email-msg : "enter a valid email massage"
}
} ],
dataSource: [ { name: "Jane Doe" }, { name: "John Doe" }]
});
我已经知道上面的错误。我在问,有办法吗?
答案 0 :(得分:2)
将data-email-msg
放在"data-email-msg"