如何格式化Kendo网格弹出编辑对话框的密码输入字段以显示密码,例如...?
请帮忙。
最佳答案
添加 editor
函数到 column
定义如下:
editor: function (container, options) {
$('<input data-text-field="' + options.field + '" ' +
'class="k-input k-textbox" ' +
'type="password" ' +
'data-value-field="' + options.field + '" ' +
'data-bind="value:' + options.field + '"/>')
.appendTo(container)
}
您甚至可以使用
columns.hidden
隐藏该列而不是在编辑模式做:{
hidden: true,
field : "password",
title : "Password",
editor: function (container, options) {
$('<input data-text-field="' + options.field + '" ' +
'class="k-input k-textbox" ' +
'type="password" ' +
'data-value-field="' + options.field + '" ' +
'data-bind="value:' + options.field + '"/>')
.appendTo(container)
}
} ,
关于kendo-ui - 如何在 Kendo UI Grid 中设置弹出编辑的密码模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15553336/