【问题标题】:dynamic Kendogrid filterable动态 Kendogrid 可过滤
【发布时间】:2016-03-20 10:49:31
【问题描述】:

是否可以为 kendoGrid 设置自定义过滤器,其中输入的值不会表现为自动完成,而是在您键入字符串包含时自动过滤?像角度 ng-show 吗?当前行为,您必须从查找中进行选择或键入值并单击过滤器。

【问题讨论】:

    标签: android-filterable


    【解决方案1】:

    如果有人碰到这个,这是我的解决方案:

              filterable: {
                              cell: {
                                  inputWidth: 125,
                                  showOperators: false,
                                  template: function (args)
                                  {
                                      $(args.element).bind("keyup change", function (e)
                                      {
                                         dtSource.filter({ field: "fistName", operator: "contains", value: args.element[0].value});
                                      });
                                  }
                              }
                          }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多