Kendo UI Grid 枚举行过滤失败

KendoUI Grid Enum row filtering fails

我已经进入 Kendo 一天了,所以我相信,我错过了显而易见的事情。

尝试使用枚举值集进行过滤时,网格似乎卡住了。 Test Link

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { 
     field: "category", 
     values: [{text: "Beverages", value: 1 }, {text: "Food", value: 2 }],
     filterable: { mode: "row", cell: { showOperators: false, operator: "eq" } }
    }
  ],
  dataSource: [{ category: 1 }, { category: 2 } ],
  filterable: {mode: "row"}
});
</script>

终于解决了,似乎只需要缺少类型。 Demo Link

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { 
     field: "category", type: "number", 
     values: [{text: "Beverages", value: 1 }, {text: "Food", value: 2 }],
     filterable: { mode: "row", cell: { showOperators: false, operator: "eq" } }
    }
  ],
  dataSource: [{ category: 1 }, { category: 2 } ],
  filterable: {mode: "row"}
});
</script>