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

Parent-Child Hierarchy grid from 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 09 Dec 2015, 08:07 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, 12:44 PM
Hi Alex,

I've already replied to your query in the following thread:
http://www.telerik.com/forums/hierarchy-grid-using-parent-id-in-the-same-table

I highly recommend that for similar queries you open only a single forum thread which will lead to more efficient and quick correspondence.

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