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

Hierarchy template with custom columns?

1 Answer 24 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 18 Mar 2015, 01:28 AM
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)

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 20 Mar 2015, 11:49 AM
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.

 
Tags
GridView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or