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

AngularJS Treeview with custom template

1 Answer 340 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Binish
Top achievements
Rank 1
Binish asked on 08 Apr 2016, 01:29 PM

Hi,

I am developing an application using angularjs and kendo ui. I have a requirement to apply custom template to the treeview based on the type of data.

For eg: consider the tree below:

A

     1

     2

B

     3

     4

 

I need to use different templates for letters and numbers. I was trying to define a template selector from the control but it did not work. Is there any sample using angularjs? Most of the code samples are not mentioning what attributes can be used from angular.

 

Appreciate any help.

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 12 Apr 2016, 10:48 AM

Hello Binish,

The TreeView AngularJS demo shows how to use a template in angular. You can use conditional rendering within the template to render different formats based on the dataItem properties.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeView
Asked by
Binish
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or