带有布尔下拉列表的KendoUI Grid行filter

filter基本上工作正常但是,

  • 选择似乎不会触发第一个选择
  • 每次重置滤波器时都会发生这种情况。

我现在干了两天……

这是小提琴

 
$(document).ready(function() { $("#grid").kendoGrid({ dataSource: { data: products, schema: { model: { fields: { ProductName: { type: "string" }, Discontinued: { type: "boolean" } } } }, pageSize: 20 }, height: 550, scrollable: true, sortable: true, filterable: { mode: "row" }, pageable: { input: true, numeric: false }, columns: [ { field: "ProductName", title: "Product Name", filterable: { cell: { operator: "contains", showOperators: false } } }, { field: "Discontinued", title: "Discontinued", filterable: { mode: "row", cell: { showOperators: false, template: function (args) { args.element.kendoDropDownList({ autoBind:false, dataTextField: "text", dataValueField: "value", dataSource: new kendo.data.DataSource({ data: [{ text: "Yes", value: "true" }, { text: "No", value: "false" }] }), index: 0, optionLabel: { text: "Filter", value: "" }, valuePrimitive: true }) } } } } ] }); });

Kendo UI 2015 Q1上有很多bug,特别是在自动完成,多选,下拉等下拉列表系列小部件中。将您的剑道库更改为2014或以前的版本将使其正常工作,请检查此道场