2
votes

Is there a way to catch the filter changed event on a kendo grid? I need to run some logic when the filter is changed on my pages.

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

1
what filtering do you use ? server or client - cwishva
@cwishva client side filtering - GodsCrimeScene

1 Answers

1
votes

You just bind the "change" event on the Datasource, this event will be fired after filter run (and also in others times like when you populate the datasource)

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
},