网格过滤器可以与任何列一起工作。我唯一的问题是使用样式布尔数据类型列(请参阅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;"
}
}
},
} .......
答案 0 :(得分:2)
喜欢它。我的一个自定义CSS类覆盖了k-xxx类样式