我有绑定 enterPress
// Custom keypress on ENTER event binding for input elements.
kendo.data.binders.enterPress = kendo.data.Binder.extend({
init: function (element, bindings, options) {
kendo.data.Binder.fn.init.call(this, element, bindings, options);
var binding = this.bindings.enterPress;
$(element).bind("keypress", function (e) {
if (e.which == 13) {
binding.get();
}
});
},
refresh: function () { }
});
如果我将它用于 DropDownList 我有错误:
未捕获的错误:DropDownList 小部件不支持 enterPress 绑定
如何为 DropDownList 制作企业版?