Edit this page

template String |Function

Template for rendering each node.

Example

<div id="treeview"></div>
<script>
$("#treeview").kendoTreeView({
  template: "#= item.text # (#= item.inStock #)",
  dataSource: [
    { text: "foo", inStock: 7, items: [
      { text: "bar", inStock: 2 },
      { text: "baz", inStock: 5 }
    ] }
  ]
});
</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