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

Hierarchical data template

4 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Todd Millett
Top achievements
Rank 1
Todd Millett asked on 06 Jun 2011, 11:24 AM
We actually require to have a data structure whose hierarchy can be nth level deep. Can you please provide me with an example where I can bind the gridview with such data structure. I would like to prevent adding the table definations dynamically from the codebehind depending on the levels.

4 Answers, 1 is accepted

Sort by
0
Daní
Top achievements
Rank 1
answered on 06 Jun 2011, 12:52 PM
Maybe RadTreeListView control will better fit your needs than GridView. Take a look at TreeListView demo TreeListView demo
0
Dimitrina
Telerik team
answered on 06 Jun 2011, 05:03 PM
Hi DanĂ­,

The hierarchy depends on the structure of your data - if it is self-referencing or not. 

You may find additional information and an example about Unlimited Hierarchy defined in XAML in this forum post.  Have you already taken a look at this online demo about HierarchyChildTemplate?

Kind regards,
Didie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Todd Millett
Top achievements
Rank 1
answered on 08 Jun 2011, 04:11 AM
So, does it mean that using RadGridView we cannot achieve this kind of functionality or can we have any workarounds ?
0
Vlad
Telerik team
answered on 08 Jun 2011, 07:11 AM
Hello,

 If you want XAML only unlimited hierarchy you can check this thread for more info. 

Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Todd Millett
Top achievements
Rank 1
Answers by
Daní
Top achievements
Rank 1
Dimitrina
Telerik team
Todd Millett
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or