【问题标题】:Catching Kendo UI Grid filter changed event捕获 Kendo UI Grid 过滤器更改事件
【发布时间】:2014-09-04 20:25:49
【问题描述】:

有没有办法在剑道网格上捕获过滤器更改事件?当我的页面上的过滤器发生变化时,我需要运行一些逻辑。

http://demos.telerik.com/kendo-ui/grid/filter-menu-customization

【问题讨论】:

标签: kendo-ui kendo-grid


【解决方案1】:

您只需在数据源上绑定“更改”事件,该事件将在过滤器运行后触发(以及在其他时间,如填充数据源时)

dataSource: {
    data: createRandomData(50),
    schema: {
        model: {
            fields: {
                City: { type: "string" },
                Title: { type: "string" },
                BirthDate: { type: "date" }
            }
        }
    },
    change: function(e) {
        Console.log('filtered'); //this will fire after filtered.
    },
    pageSize: 15
},

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-10-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-18
    • 1970-01-01
    相关资源
    最近更新 更多