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

Kendo tree - Show Lines between Nodes

3 Answers 406 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bogdan
Top achievements
Rank 1
Bogdan asked on 11 Jun 2018, 11:41 AM

Hello,

It's possible to display lines with different width and color between nodes?

Regards,

Bogdan

 

3 Answers, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 12 Jun 2018, 01:32 PM
Hello Bogdan,

There is no built-in TreeView component functionality that matches the description, but there are couple of approaches for a custom implementation to achieve the desired result.

You can overwrite the built-in styling and provide different borders for items depending on custom criteria like their level in the hierarchy, their position, etc. Here is an example of this approach:

https://plnkr.co/edit/gNUi7NrVdhVfIlRK0TBw?p=preview

You can also utilize the TreeView Node templates and provide custom elements with the desired width and color, possibly based on some property of the data item, associated with the respective node, e.g.:

https://plnkr.co/edit/9uLDgMIc6TtleIvSfiWM?p=preview

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Peter Chapman
Top achievements
Rank 1
answered on 03 Sep 2018, 05:23 PM

Dimiter,

These plunkers didn't work for me, i just got red swirlys. It's a shame because they are exactly what I needed.

Please can you check them?

Thanks

Pete

 

0
Svet
Telerik team
answered on 05 Sep 2018, 07:14 AM
Hi Pete,

Here are links to the updated sample plunkers:

https://plnkr.co/edit/NbLJvIjdJvEyeClr3UUz?p=preview

and

https://plnkr.co/edit/1Mpo9FTGx6syaAKHolia?p=preview

Regards,
Svetlin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Latha
Top achievements
Rank 1
Iron
commented on 19 Oct 2022, 04:09 PM

These plunker links are not working anymore, can you pls provide updated one?
Tags
General Discussions
Asked by
Bogdan
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Peter Chapman
Top achievements
Rank 1
Svet
Telerik team
Share this question
or