AngularJS Treeview with custom template

2 posts, 1 answers
  1. Binish
    Binish avatar
    2 posts
    Member since:
    Mar 2016

    Posted 08 Apr Link to this post

    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

  2. Answer
    Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 12 Apr Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top