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

multiple/different HierarchyChildTemplate in 1 DataGridView

4 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sven Honert
Top achievements
Rank 1
Sven Honert asked on 31 Aug 2012, 02:24 PM
Hello @all,

how i can create multiple/different HierarchyChildTemplate in 1 DataGridView?


Example "Account": in the account nested grid should be contain only account data!
Example "Contact": in the contact nested grid should be contain only contact data!


Thank's in advance

Sven

4 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 03 Sep 2012, 02:48 PM
Hello Sven,

 In order to have different HierarchyChildTemplates  in a Gridview you can use HierarchyChildTemplateSelector. For more information please check this online demo where you can find how to use it.

Regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sven Honert
Top achievements
Rank 1
answered on 03 Sep 2012, 03:30 PM
Hello Yoan,

thank you for your quick support.
But, i can't find the "HierarchyChildTemplateSelector" in the Behind of Code.
Has you a debugable Example for me, please?


Thx, Sven
0
Yoan
Telerik team
answered on 04 Sep 2012, 07:56 AM
Hello Sven,

 In order to use HierarchyChildTemplateSelector I suggest you to check this help article which shows you how to use the CellTemplateSelector. Actually the approach is almost the same. If you find any difficulties don't hesitate to contact us.


All the best,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sven Honert
Top achievements
Rank 1
answered on 06 Sep 2012, 10:41 AM
Hello Yoan,

I found a another solution for my problem. Nevertheless, to thank you most sincerely...


With kind regards
Sven
Tags
GridView
Asked by
Sven Honert
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Sven Honert
Top achievements
Rank 1
Share this question
or