Tag: kendo multiselect

具有多选下拉列表的自定义过滤

我有一个网格,在工具栏中包含三个多选控件,用于根据所做的选择过滤网格数据源。 目前,我有以下函数,在任何多选控件的change事件期间触发。 此函数接受包含更改的多选控件中的所选项的values和filterID , filterID是在过滤期间使用的field名。 function applyClientFilters(values, filterID) { var grid = $(“#grid”).data(“kendoGrid”); var gridDataSource = grid.dataSource; var filter = gridDataSource.filter(); // does the selected drop down contain a value // if yes, then apply this filter to the necessary drop down // otherwise remove the filter if (values.length > 0) { // has a […]

扩展Kendo MultiSelect

我正在尝试通过扩展现有的一个来创建一个新的kendo多选小部件。 目标是在输入下方的div中显示标记列表。 我在此代码中的目标是将标记列表呈现在窗口小部件的select事件上的单独div中,然后返回基本窗口小部件的选择事件(Kendo MultiSelect),但基本窗口小部件的select事件返回dataItem undefind错误。 我究竟做错了什么? (function ($) { var customMultiSelect = kendo.ui.MultiSelect.extend({ init: function (element, options) { var that = this; kendo.ui.MultiSelect.fn.init.call(that, element, options); // Hide the tag list… var id = that.element.attr(‘id’); that.wrapper.find(`ul#${id}_taglist`).addClass(“hidden”); that.element.on(“select”, that._select); }, options: { name: “CustomMultiSelect” }, _select: function (e) { // code to render the tag list in […]