GodsCrimeScene
GodsCrimeScene

Reputation: 1270

Catching Kendo UI Grid filter changed event

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

Upvotes: 2

Views: 8325

Answers (1)

Manjar
Manjar

Reputation: 3268

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

Upvotes: 1

Related Questions