I have column defined with template : "object.type" and it is dropdownlist (there are multiple types to search).
It has editor:
editor : function (container, options) {
$('<input data-text-field="display" data-value-field="id" data-bind="value:' + options.field + '"/>')
.appendTo(container)
.kendoDropDownList({
index: 0,
dataTextField: "display",
dataValueField: "id",
dataSource: usergroupConf.permissions
});
},
so element for this column is object with keys id and display, e.g.
{
"id":"1",
"display":"Big"
}
now, I have defined filterable property for that column:
filterable : {
extra : false,
ui : function(element) {
element.kendoDropDownList({
index: 0,
dataTextField: "display",
dataValueField: "id",
dataSource: usergroupConf.permissions
});
}
}
when I click on filter box it displays filter fine, but when I select some value from it I get error :
Uncaught TypeError: undefined is not a function
So in short,
how to filter columns in kendo's grid which are dropdowns?