【问题标题】:KendoUI Grid Enum row filtering failsKendo UI Grid Enum 行过滤失败
【发布时间】:2015-03-24 06:59:15
【问题描述】:

我刚接触剑道一天,所以我相信,我错过了显而易见的事情。

当尝试使用设置的枚举值进行过滤时,网格似乎卡住了。 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>

【问题讨论】:

    标签: kendo-ui kendo-grid


    【解决方案1】:

    终于解决了,似乎只需要缺少类型。 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>
    

    【讨论】:

      猜你喜欢
      • 2018-03-13
      • 2019-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-19
      相关资源
      最近更新 更多