动态 Kendogrid 可过滤

dynamic Kendogrid filterable

是否可以为 kendoGrid 设置自定义过滤器,其中输入的值不会自动完成,而是在您键入字符串包含时自动过滤?喜欢 angular ng-show ?.当前行为,您必须 select 通过查找或键入一个值并单击过滤器。

万一有人遇到这个问题,这是我的解决方案:

          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});
                                  });
                              }
                          }
                      }