Grid with multiple children of different columns

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

    Posted 12 Dec 2012 Link to this post

    Hi,

    I am new to this telerik controls. I want to have multiple children, which are of having different number of columns and values. I will be binding the complete collection as observable collection through model, since i am using MVVM model with WPF. Collection can have 'n' number of parents, each parent will have two children, These two children can have 'n' number of rows. i tried to use heirarchical child template, but i am not able to add two different children which are binded to different itemsource. Kindly help me with this.

    Thanks,
    Somasekharan
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 12 Dec 2012 Link to this post

    Hi Somasekharan,

    As I understand you would like to have different HierarchyChildTemplates for the hierarchy. For that purpose you can use HierarchyChildTemplateSelector. For more information please check the Hierarchy  WPF Demo where you can find an example on how to use it.

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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

    Posted 12 Dec 2012 Link to this post

    Hi Didie,

    Thanks for your reply. I checked with the Demo. But what i need is two different children binded with different item source collection. In the Demo, there are multiple children (which are having n number of records) for a single parent. My requirement is 'n' number of parents having two different children,each children will have different number of columns. You can check it in my attached image.

    Thanks,
    Somasekharan
Back to Top