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

时间:2014-01-24 20:13:25

标签: filter kendo-ui grid styles boolean

网格过滤器可以与任何列一起工作。我唯一的问题是使用样式布尔数据类型列(请参阅img)。

enter image description here

任何想法可能缺少什么?

        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;"
                    }
                }
            },

} .......

1 个答案:

答案 0 :(得分:2)

喜欢它。我的一个自定义CSS类覆盖了k-xxx类样式