New to Telerik UI for Blazor? Start a free 30-day trial
TreeView for Navigation
Updated on Oct 1, 2026
The TreeView can navigate between different pages in the application.
- Use a
Urlproperty in the model, or set theUrlFieldattribute in aTreeViewBinding. Thus the TreeView will generate navigation links. - It is possible to add the TreeView to the
MainLayout.razor, outside the app@Body.
External links should include a protocol, for example
https://.Blazor doesn't support navigation to page sections out-of-the-box.
For specific scenarios, use a Template to generate the desired links manually (e.g. NavLink components) to enable fine-tuning.
TreeView for page navigation
Loading ...
Notes
-
The
UrlFieldhas a default value (Url) and that will be used if present in the model even if you do not define it explicitly. -
The component uses the
NavigationManagerfrom the framework to perform the navigation based on the value from theUrlField.- If you have a template that adds anchors, or use a click event to navigate the user yourself, this may lead to double navigation and errors, especially if your model has a field called
Url. To avoid such problems, either let the Telerik component do the navigation and remove the application-specific code that does it as well, or remove the URL setting (either rename the model field, or point theUrlFieldto a non-existing field).
- If you have a template that adds anchors, or use a click event to navigate the user yourself, this may lead to double navigation and errors, especially if your model has a field called