Unlimited hierarchies

5 posts, 0 answers
  1. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 12 Feb 2010 Link to this post

    Is it possible to make the GridView recursively display an unlimited level of hierarchies? I have tried setting the ChildGridTemplate to itself (see code below), but that does not work.

    <DataTemplate x:Key="ChildGridTemplate"
                <telerikgrid:RadGridView ItemsSource="{Binding ChildEntities}" 
                                         HierarchyChildTemplate="{StaticResource ChildGridTemplate}"

    /Henrik
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 12 Feb 2010 Link to this post

    Hi Henrik,

    Please check the attached example for more info.

    Sincerely yours,
    Vlad
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Robert Pelzer
    Robert Pelzer avatar
    15 posts
    Member since:
    Aug 2009

    Posted 24 May 2011 Link to this post

    That is a disappointing implementation.  It would be much more pleasing to be able to implement something like a hierarchicaldatatemplate all through the xaml.   Having to write code in the view is frustrating.   We are trying to write enterprise level application that utilize the MVVM pattern and limit code behind in the views.
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 25 May 2011 Link to this post

    Hello,

    You can achieve the same with pure XAML in less than a minute. Here is an example. 

    Regards,
    Vlad
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  6. Robert Pelzer
    Robert Pelzer avatar
    15 posts
    Member since:
    Aug 2009

    Posted 25 May 2011 Link to this post

    Thank you, that is a much better solution.  I wish i would have thought of that.
Back to Top
DevCraft banner