Parent-Child Hierarchy grid from same table

2 posts, 1 answers
  1. Alex
    Alex avatar
    7 posts
    Member since:
    Oct 2015

    Posted 29 Nov 2015 Link to this post

    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

     

  2. Answer
    Viktor Tachev
    Admin
    Viktor Tachev avatar
    2357 posts

    Posted 02 Dec 2015 Link to this post

    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
Back to Top