【问题标题】:Kendo UI Grid - Row filter debounce inputsKendo UI Grid - 行过滤器去抖动输入
【发布时间】:2016-05-26 11:19:06
【问题描述】:

我使用剑道网格的方式与以下演示相同:http://demos.telerik.com/kendo-ui/grid/filter-row

是否可以为字符串过滤器输入添加去抖动时间,以便“在用户键入时”应用过滤器

【问题讨论】:

    标签: kendo-ui kendo-grid


    【解决方案1】:

    您可以通过在输入时在要过滤的列中添加代码来轻松实现此目的:

     filterable: {
                                cell: {
                                    operator: "contains",
                                    template: function (args) {
                                       args.element.css("width", "90%").addClass("k-textbox").keydown(function(e){
                                         setTimeout(function(){
                                                              $(e.target).trigger("change");
                                                             });
                                       });
                                    }
    
                                }
                            }
    

    我在这里做了一个例子:

    http://dojo.telerik.com/ApukU

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-18
      • 1970-01-01
      • 1970-01-01
      • 2012-12-28
      • 1970-01-01
      相关资源
      最近更新 更多