New to Kendo UI for jQueryStart a free 30-day trial

Triggered when the user presses a keyboard key while the TreeView is focused.

Event Data

e.sender kendo.ui.TreeView

The TreeView instance that triggered the event.

e.preventKendoKeydown Boolean

If set to true prevents the TreeView keydown logic.

e.preventDefault Function

If invoked cancels the default action that belongs to the keydown event.

<div id="treeview"></div>

<script>
  $("#treeview").kendoTreeView({
    dataSource: [{
      text: "foo",
      items: [{ text: "bar" }]
    }],
    kendoKeydown: function(e) {
      e.preventKendoKeydown = true;
    }
  });
</script>
<div id="treeview"></div>

<script>
  $("#treeview").kendoTreeView({
    dataSource: [{
      text: "foo",
      items: [{ text: "bar" }]
    }],
    kendoKeydown: function(e) {
      if(e.keyCode === kendo.keys.ENTER){
        e.preventKendoKeydown = true;
        // add custom code here to handle the event
      }
    }
  });
</script>
Not finding the help you need?
Contact Support