check

Triggered after the user has checked or unchecked a checkbox. If checkChildren is true, the event is triggered after all checked states are updated. This event has been introduced in internal builds after 2014.2.828.

Event Data

e.node Element

The node whose the checkbox has been checked.

Example - subscribe to the "check" event during initialization

<div id="treeview"></div>
<script>
$("#treeview").kendoTreeView({
  checkboxes: true,
  dataSource: [
    { text: "foo", items: [
      { text: "bar" }
    ] }
  ],
  check: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log("Checking", e.node);
    console.log("Is node checked -> " + $(e.node).attr("aria-checked"))
  }
});
</script>

Example - subscribe to the "check" event after initialization

<div id="treeview"></div>
<script>
function tree_check(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log("Checking", e.node);
}
$("#treeview").kendoTreeView({
  checkboxes: true,
  dataSource: [
    { text: "foo", items: [
      { text: "bar" }
    ] }
  ]
});
var treeview = $("#treeview").data("kendoTreeView");
treeview.bind("check", tree_check);
</script>
In this article