multiple/different HierarchyChildTemplate in 1 DataGridView

5 posts, 0 answers
  1. Sven Honert
    Sven Honert avatar
    13 posts
    Member since:
    Feb 2010

    Posted 31 Aug 2012 Link to this post

    Hello @all,

    how i can create multiple/different HierarchyChildTemplate in 1 DataGridView?


    Example "Account": in the account nested grid should be contain only account data!
    Example "Contact": in the contact nested grid should be contain only contact data!


    Thank's in advance

    Sven
  2. Yoan
    Admin
    Yoan avatar
    1182 posts

    Posted 03 Sep 2012 Link to this post

    Hello Sven,

     In order to have different HierarchyChildTemplates  in a Gridview you can use HierarchyChildTemplateSelector. For more information please check this online demo where you can find how to use it.

    Regards,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Sven Honert
    Sven Honert avatar
    13 posts
    Member since:
    Feb 2010

    Posted 03 Sep 2012 Link to this post

    Hello Yoan,

    thank you for your quick support.
    But, i can't find the "HierarchyChildTemplateSelector" in the Behind of Code.
    Has you a debugable Example for me, please?


    Thx, Sven
  4. Yoan
    Admin
    Yoan avatar
    1182 posts

    Posted 04 Sep 2012 Link to this post

    Hello Sven,

     In order to use HierarchyChildTemplateSelector I suggest you to check this help article which shows you how to use the CellTemplateSelector. Actually the approach is almost the same. If you find any difficulties don't hesitate to contact us.


    All the best,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Sven Honert
    Sven Honert avatar
    13 posts
    Member since:
    Feb 2010

    Posted 06 Sep 2012 Link to this post

    Hello Yoan,

    I found a another solution for my problem. Nevertheless, to thank you most sincerely...


    With kind regards
    Sven
Back to Top