2014-01-24 46 views
3

網格過濾器的工作原理與任何列一樣。唯一的問題,我與樣式布爾數據類型列(見img)。如何使用布爾過濾器設計KendoUi網格

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

酷愛它。我的一個自定義CSS類是覆蓋k-xxx類風格