Hi,
I once created a custom widget which extended the Multiselect widget (using Kendo 2016.2.714), but once I switch to Kendo 2017 (.1 or .2, doesn't matter), the widget is broken and gives a javascript error ("TypeError: Cannot read property 'done' of undefined"). For the purpose of this post, I created a really simple widget, showing the issue:
kendo.ui.plugin(kendo.ui.MultiSelect.extend({
init:
function
(element, options) {
kendo.ui.MultiSelect.fn.init.call(
this
, element, options);
},
options: {
name:
'MultiSelectCustom'
},
_select:
function
(e) {
console.log(e);
}
}));
kendo.data.binders.widget.multiselectcustom = kendo.data.binders.widget.multiselect;
The issue seems to be in the override of the "select" function, when I remove that, no JavaScript errors are to be seen.
How to get this to work again with Kendo 2017?
Regards,
Pieter