I'm using a treeList, I want to do an action whenever the filter is used. I'm trying to do that with the change event but this is not working.
According to the documentation ,the Change event is " Fired when the data source is populated from a JavaScript array or a remote service, a data item is inserted, updated or removed, the data items are paged, sorted, filtered or grouped." But the change event doesn't get fired in my case.
Is there a way to know when the filter is used ?
Here is my code:
$("#treeList").kendoTreeList({
columns: [
{ field: "name" },
{ field: "age" }
],
dataSource: [
{ name: "Jane Doe", age: 30 },
{ name: "John Doe", age: 33 }
],
change: function(e) {
console.log("not fired when applying filter");
},
selectable: "multiple, cell",
filterable: true
});
var treeList = $("#treeList").data("kendoTreeList");