Different format for Parent and Child elements in RadTreeListView

2 posts, 0 answers
  1. Kalaivanan
    Kalaivanan avatar
    3 posts
    Member since:
    Sep 2015

    Posted 01 Apr Link to this post


    I am new to silver-light and Telerik Rad controls, i have a scenario to display data in the form of tree hierarchy, this data hierarchy contains only two levels(Parents and Child's), but i want to display Parents and Child's in different style(see below sample or attachment), please help me to achieve this.

    Data Hierarchy

    Name     Option 1     Option 2      Option 3
       Child-1     1                  2                 3
       Child-2     1                  2                 3 
       Child-3     1                  2                 3 
       Child-4     1                  2                 3 
       Child-5     1                  2                 3 
       Child-6     1                  2                 3  
       Child-7     1                  2                 3  
       Child-8     1                  2                 3  
       Child-9     1                  2                 3  
       Child-10   1                  2                 3  

    My advance thanks for your responses.


  2. Dilyan Traykov
    Dilyan Traykov avatar
    334 posts

    Posted 06 Apr Link to this post

    Hello Kalaivanan,

    Could you please clarify whether the child elements should have a different style or different fields. Or maybe both?

    From the image and table you've provided, I can assume that your hierarchy is of heterogeneous data. As stated in the RadTreeListView vs RadGridView section of RadTreeListView's Getting Started article, you should use RadTreeListView only when you need to display homogeneous data. For heterogeneous data, you should use a Hierarchical RadGridView.

    If you need your children to have a different style from their parent, you can then modify RadGridView's HierarchyChildTemplate to your liking.

    Please let me know if you find this information helpful.

    Dilyan Traykov
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top