This is a migrated thread and some comments may be shown as answers.

Css on HierarchicalData

1 Answer 130 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Giampaolo
Top achievements
Rank 1
Veteran
Giampaolo asked on 13 Oct 2020, 01:51 PM

Hi

I'm using treeview with Hierarchical data

Is it possible change the css for the text ? I need to change some char (color/bold) in some text near the icon.

Otherwise how is possibile to use the template with a list of item with parentid ?

Tnx

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 13 Oct 2020, 02:57 PM

Hi Giampaolo,

You can have a different template for the different levels of the treeview, and there you can render whatever class you need. You can read more about this in the following article from the documentation (that particular section is "Multiple Level Bindings" near the end, but the rest can be helpful too): https://docs.telerik.com/blazor-ui/components/treeview/data-binding/overview.

That article will also explain the general concepts of data binding a treeview, and then you can find more details and examples for the two binding modes in these articles: 

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TreeView
Asked by
Giampaolo
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Share this question
or