The change event is not fired when applying a filter

3 posts, 0 answers
  1. Gers
    Gers avatar
    10 posts
    Member since:
    Jan 2016

    Posted 12 Feb 2016 Link to this post

    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:

          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");

  2. Nikolay Rusev
    Nikolay Rusev avatar
    2289 posts

    Posted 16 Feb 2016 Link to this post

    Hello Gers,


    This is true for the DataSource change event. However in the code bellow you are handling change event of the TreeList which is only triggered by selection.


    Nikolay Rusev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Gers
    Gers avatar
    10 posts
    Member since:
    Jan 2016

    Posted 16 Feb 2016 in reply to Nikolay Rusev Link to this post

    Perfect, you are the man Nikolay Rusev !!!
Back to Top