【问题标题】:Kendo vue wrapper error on kendo-grid-column filterable propskendo-grid-column 可过滤道具上的 Kendo vue 包装器错误
【发布时间】: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


    【解决方案1】:

    我更新了我的 kendo vue ui 包装器版本,它按预期工作。

    "@progress/kendo-grid-vue-wrapper": "^2018.2.620",
    

    【讨论】:

      猜你喜欢
      • 2019-07-12
      • 1970-01-01
      • 1970-01-01
      • 2015-09-21
      • 1970-01-01
      • 1970-01-01
      • 2014-10-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多