【发布时间】:2018-06-29 15:47:26
【问题描述】:
我试图在 Kendo Grid 上使用下拉过滤器。但我得到了错误,
Invalid prop: type check failed for prop "filterable". Expected Boolean, got Object.
<kendo-grid-column :filterable="{
ui: statusFilter,
operators: {
string:{
eq : 'Is equal to'
}
}
}" field="status" title="Client Status" width="10%"></kendo-grid-column>
状态过滤方法
statusFilter(element) {
this.$http.get("list/getclientstatus").then(({ data }) => {
element.kendoDropDownList({
dataSource: data,
dataTextField: "text",
dataValueField: "value",
optionLabel: "--Select Value--"
});
});
我在网格上使用剑道vue-templates 进行动作方法,该方法只能作为道具使用。
https://www.telerik.com/kendo-vue-ui/components/framework/vue-templates/
我使用的剑道网格版本:2018.2.516,
所以,我不能将此过滤器用作:
columns: [
{
field: "status",
title: "Client Status",
filterable: {
ui: this.statusFilter,
operators: {
string: {
eq: "Is equal to"
}
}
}
}
这种方法对我来说效果很好。但是作为对象的可过滤道具不适用于我的情况。
有什么办法可以解决这个问题?
请帮忙!
【问题讨论】:
标签: kendo-ui-vue