Edit this page

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) {
    console.log("Checking", e.node);
  }
});
</script>

Example - subscribe to the "check" event after initialization

<div id="treeview"></div>
<script>
function tree_check(e) {
  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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy