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

Hierarchy grid using parent id in the same table

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 08 Dec 2015, 10:34 AM

Hi Telerik team,

 Currently I am having the parent - child data in the same table in the below format.

My Data...

Id | ParentId |score
2 | 1 | 56
3 | 1 | 98
4 | 2 | 75
5 | 2 | 75
6 | 2 | 99
7 | 5 | 73

Now I want to build the hierarchy grid using that single table. without defining separate detail table for each level

Note that the level is not limited. it can be extended to many level.

I want the grid to be like below

id     | score
>1       | 100
 >2      | 56
  >4     | 75
  >5     | 75
    >7  | 73
  >6     | 99
 >3       | 98

Please help how to do this 

 

Thanks 

Alex

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 11 Dec 2015, 08:23 AM
Hello Alex,

I am afraid self-referencing hierarchy grid structure is not supported. You can try to use RadTreeList to achieve similar implementation:
http://demos.telerik.com/aspnet-ajax/treelist/examples/overview/defaultcs.aspx

Regards,
Eyup
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or