Treeview Templates
The Treeview component allows you to define a custom template for its nodes. This article explains how you can use it.
In this article:
Basics
The ItemTemplate of a node is defined under the TreeViewBinding tag.
The template receives the model to which the item is bound as its context. You can use it to render the desired content.
You can also define different templates for the different levels in each TreeViewBinding tag.
You can use the template to render arbitrary content according to your application's data and logic. You can use components in it and thus provide rich content instead of plain text. You can also use it to add DOM event handlers like click, double click, mouseover if you need to respond to them.
Examples
Handle DOM events in a template - e.g., click on a node
You can respond to the user click on a node by using the
OnItemClickevent.
Use templates to implement navigation between views without the usage of the UrlField feature
You can read more information on how to use the Treeview to switch between pages from the Navigation article