3 Answers, 1 is accepted
0
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
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
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
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
commented on 19 Oct 2022, 04:09 PM
Top achievements
Rank 1
Iron
These plunker links are not working anymore, can you pls provide updated one?