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

Multiple levels of hierarchy

3 Answers 210 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Somasekharan
Top achievements
Rank 1
Somasekharan asked on 13 Dec 2012, 05:46 AM
Hi,

i would like to realize a scenario with multiple levels of hierarchy as shown in the attachment.
Some facts:
 - multiple levels of hierarchy possible (but not the same depth for all categories)
 - sub category collection will have different values and different number of columns.
 
I tried the nested grid feature but it has some major drawbacks:
-not able to define children of different types
-both children will have the same template, even if i used heirarchy child templateselector,am not able to achieve

Is there any possiblity I could achieve the structure in the attachment with the GridView?
Many thanks in advance,

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Dec 2012, 08:42 AM
Hello,

As I understand you would like to have the structure like a TreeListView having heterogeneous data and different child hierarchy templates.

What I would suggest you would be to use the RadGridView and choose the hierarchy templates with a ChildTemplateSelector. You say that you are "not able to define children of different types". May I ask you what problem have you met?

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Dimitrina
Telerik team
answered on 14 Dec 2012, 08:51 AM
Hello,

You can use as well check the approach from this post with RadGridView simulating treelist like structure.  

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Somasekharan
Top achievements
Rank 1
answered on 17 Dec 2012, 04:49 AM
Hi Didie,

Thanks for the reply.

If i am using the template selector, i am not able to use the both data templates at a same time. You can see it in my requirement that i need to show the grid with both the children at same time. In the telerik demo, only one template is shown in the grid at a time.
May be i misunderstood the template selector concept in the telerik demo, if possible can you share the sample piece of code related to my requirement using ChildTemplateSelector but not the one in telerik demo.

Many 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