This is a migrated thread and some comments may be shown as answers.

Unlimited hierarchies

4 Answers 107 Views
GridView
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 12 Feb 2010, 10:05 AM
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

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Feb 2010, 11:31 AM
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.
0
Robert Pelzer
Top achievements
Rank 2
answered on 24 May 2011, 04:20 PM
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.
0
Vlad
Telerik team
answered on 25 May 2011, 06:48 AM
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
0
Robert Pelzer
Top achievements
Rank 2
answered on 25 May 2011, 02:10 PM
Thank you, that is a much better solution.  I wish i would have thought of that.
Tags
GridView
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Robert Pelzer
Top achievements
Rank 2
Share this question
or