change

Fires when data is changed. In addition to the standard change event, the HierarchicalDataSource includes additional data when the event has been triggered from a child DataSource.

Event Data

e.node kendo.data.Node

If the event was triggered by a child datasource, this field holds a reference to the parent node.

Example

<script>
var datasource = new kendo.data.HierarchicalDataSource({
  data: [
    { id: 1, text: "foo", items: [
      { id: 2, text: "bar" }
    ] }
  ],
  change: function(e) {
    console.log(e.node);
  }
});

// logs `undefined`, because the change event is not triggered by a node
datasource.read();

// logs `{ id: 1, text: "foo" }`, because the event is triggered by the root item
datasource.get(1).load();
</script>
In this article
Not finding the help you need?