网格过滤器适用于任何列。我在设置 boolean 数据类型列的样式时遇到的唯一问题(请参阅 img)。
知道可能缺少什么吗?
editable: true,
columns: [
{ field: "kid", title: "OEM", type: "string" },
{ field: "dealerDId", title: "S.No", type: "string" },
{ field: "emailSubject1", title: "Subject" },
{
field: "isAdminViewOnly",
title: "Is Admin View",
template: "#: isAdminViewOnly ? 'Yes' : 'No' #",
type: "boolean",
filterable: {
messages: {
info: "Filter By Admin View:",
// when filtering boolean numbers
isTrue: "Is Admin View",
isFalse: "Is NOT Admin View",
style: "max-width:100px;"
}
}
},
} ......
最佳答案
喜欢它。我的自定义 CSS 类之一覆盖了 k-xxx 类样式
关于filter - 如何使用 boolean 过滤器设置 KendoUi Grid 样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21341654/