New to Telerik UI for Blazor? Download Free 30-day trial
TreeView - Item Formatting
- EDIT IN TELERIK REPL
- Change Theme
Loading the demo source code...please wait.
You can use the
OnItemRenderevent of the TreeView to apply conditional styling on its nodes based on a certain criteria. The
OnItemRenderevent fires when each node is about to render. It allows you to set a
divelement based on your business logic.
This TreeView Item Formatting example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.