如何使用布尔过滤器设置KendoUi Grid的样式

网格过滤器可以与任何列一起工作.我用样式布尔数据类型列的唯一问题(见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类样式

点赞