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

Parent-Child Hierarchy grid from same table

1 Answer 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 29 Nov 2015, 09:41 AM

Dear Telerik Team,

 I am having the table with parent child details in the same table.

  1. id - 11 , parent - 1, name - aaa
  2. id - 12, parent - 11, name - aab
  3. id - 13, parent - 11, name --aac
  4. id - 14, parent - 13, name -aad
  5. id - 15, parent - 14, name - aae , and so on...

Now I want to create the hierarchy grid using this parent child relation. Any my table can have multiple levels,

Is there any chance to use only the parent-child id's, with out defining the details tables for every level??

 

Thanks 

Alex

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 02 Dec 2015, 01:38 PM
Hi Alex,

It is not recommended to use RadGrid when you have self-referencing data. You could implement such scenario, however, it would require custom code and the performance would likely suffer.

If you would like to have self-referencing hierarchy you should use the RadTreeList control. It supports such data out of the box. Moreover, it would provide better performance in this scenario.



Regards,
Viktor Tachev
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
Viktor Tachev
Telerik team
Share this question
or