Hierarchy template with custom columns?

2 posts, 1 answers
  1. Kevin
    Kevin avatar
    1 posts
    Member since:
    Dec 2014

    Posted 17 Mar 2015 Link to this post

    Hi all,

    Is it possible to have a hierarchy in radgridview with custom columns?  What I mean is have a master template, followed by a template, however there are different columns in those templates for each row?

    In a very crude example...  

    Column A
         Sub Column A (phone, zip code, etc)

    Column B
         Sub Column B (name, city, address)
  2. Answer
    Dess
    Admin
    Dess avatar
    1601 posts

    Posted 20 Mar 2015 Link to this post

    Hello Kevin,

    Thank you for writing.

    I would like to note that when you setup grid hierarchy, you add a template which is common for the entire child level. Hence, it uses common columns. However, in order to achieve your goal, you can add several child templates and display the relevant one (and hide the other/s) when expanding a master row. A sample approach is demonstrated in our Formatting Cells help article >> Example 4: Hiding child tabs when no data is available section.

    I hope this information helps. Should you have further questions, I would be glad to help.
     
    Regards,
    Dess
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top