Javascript 带过滤器的剑道多选框
我的项目需要一个多选框 我在KendoUI DropDownList小部件上找到了一个插件构建: 我已更改代码以使用KendoUI版本2015.1.429 (我相信它也适用于更高版本。) 请查看我的代码: 如何向该插件添加过滤器选项,使其正常工作 谢谢,Javascript 带过滤器的剑道多选框,javascript,jquery,kendo-ui,telerik,multi-select,Javascript,Jquery,Kendo Ui,Telerik,Multi Select,我的项目需要一个多选框 我在KendoUI DropDownList小部件上找到了一个插件构建: 我已更改代码以使用KendoUI版本2015.1.429 (我相信它也适用于更高版本。) 请查看我的代码: 如何向该插件添加过滤器选项,使其正常工作 谢谢, 丹尼尔。您必须添加一个额外的过滤选项 options: { name: "MultiSelectBox", index: -1, showSelectAll: null, a
丹尼尔。您必须添加一个额外的过滤选项
options: {
name: "MultiSelectBox",
index: -1,
showSelectAll: null,
autoClose: false,
preSummaryCount: 1, // number of items to show before summarising
emptySelectionLabel: null, // what to show when no items are selected
selectionChanged: null, // provide callback to invoke when selection has changed
allText: "All", // select All text
filter: "contains"
},
filter:选项可以接受不同类型的筛选器,例如“StartWith”、“endswith”和“contains”我已尝试应用筛选器设置。但是,它不能正常工作!例如,使用过滤器会导致“全选”选项消失。您可能需要实现并绑定一个kendo.data.DataSource(),然后在数据源上管理过滤器。