Multiple levels of hierarchy

4 posts, 0 answers
  1. Somasekharan
    Somasekharan avatar
    9 posts
    Member since:
    Nov 2012

    Posted 12 Dec 2012 Link to this post

    Hi,

    i would like to realize a scenario with multiple levels of hierarchy as shown in the attachment.
    Some facts:
     - multiple levels of hierarchy possible (but not the same depth for all categories)
     - sub category collection will have different values and different number of columns.
     
    I tried the nested grid feature but it has some major drawbacks:
    -not able to define children of different types
    -both children will have the same template, even if i used heirarchy child templateselector,am not able to achieve

    Is there any possiblity I could achieve the structure in the attachment with the GridView?
    Many thanks in advance,

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Dec 2012 Link to this post

    Hello,

    As I understand you would like to have the structure like a TreeListView having heterogeneous data and different child hierarchy templates.

    What I would suggest you would be to use the RadGridView and choose the hierarchy templates with a ChildTemplateSelector. You say that you are "not able to define children of different types". May I ask you what problem have you met?

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Dec 2012 Link to this post

    Hello,

    You can use as well check the approach from this post with RadGridView simulating treelist like structure.  

    Kind regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  4. Somasekharan
    Somasekharan avatar
    9 posts
    Member since:
    Nov 2012

    Posted 16 Dec 2012 Link to this post

    Hi Didie,

    Thanks for the reply.

    If i am using the template selector, i am not able to use the both data templates at a same time. You can see it in my requirement that i need to show the grid with both the children at same time. In the telerik demo, only one template is shown in the grid at a time.
    May be i misunderstood the template selector concept in the telerik demo, if possible can you share the sample piece of code related to my requirement using ChildTemplateSelector but not the one in telerik demo.

    Many Thanks
    Somasekharan
Back to Top