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

Grid with multiple children of different columns

2 Answers 149 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Somasekharan
Top achievements
Rank 1
Somasekharan asked on 12 Dec 2012, 12:48 PM
Hi,

I am new to this telerik controls. I want to have multiple children, which are of having different number of columns and values. I will be binding the complete collection as observable collection through model, since i am using MVVM model with WPF. Collection can have 'n' number of parents, each parent will have two children, These two children can have 'n' number of rows. i tried to use heirarchical child template, but i am not able to add two different children which are binded to different itemsource. Kindly help me with this.

Thanks,
Somasekharan

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 12 Dec 2012, 01:07 PM
Hi Somasekharan,

As I understand you would like to have different HierarchyChildTemplates for the hierarchy. For that purpose you can use HierarchyChildTemplateSelector. For more information please check the Hierarchy  WPF Demo where you can find an example on how to use it.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Somasekharan
Top achievements
Rank 1
answered on 12 Dec 2012, 01:51 PM
Hi Didie,

Thanks for your reply. I checked with the Demo. But what i need is two different children binded with different item source collection. In the Demo, there are multiple children (which are having n number of records) for a single parent. My requirement is 'n' number of parents having two different children,each children will have different number of columns. You can check it in my attached image.

Thanks,
Somasekharan
Tags
GridView
Asked by
Somasekharan
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Somasekharan
Top achievements
Rank 1
Share this question
or