I want to show self referancial hirarchy in RadGridView of silverlight.
I shown it by Grid inside Grid using
<
telerik:RadGridView.HierarchyChildTemplate>
This work fine in ur older version
Runtime : v2.0.50727
Version : 2009.2.710.1020
but when I am using ur newer version of
Runtime : v2.0.50727
Version : 2009.3.1208.1030
It shows only root row not child Grid.
why this is so...
Pls , Help me out...
Thank u.....
9 Answers, 1 is accepted
Do you have any ChildTableDefinitions defined? You can check this demo for more info:
http://demos.telerik.com/silverlight/#GridView/Hierarchy/SelfReference
Best wishes,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I am not using "ChildTableDefinitions" because I want to show multiple levels in Grid.
My .xaml page is like this,
<telerik:RadGridView Name="clubsGrid" AutoGenerateColumns="False" ColumnsWidthMode="Auto" >
<telerik:RadGridView.HierarchyChildTemplate>
<DataTemplate>
<!-- level 1 -->
<telerik:RadGridView Name="playersGrid" ShowGroupPanel="False" AutoGenerateColumns="False" ColumnsWidthMode="Auto" ShowColumnHeaders="False">
<telerik:RadGridView.HierarchyChildTemplate>
<DataTemplate>
<!-- level 2 -->
<telerik:RadGridView Name="gamesGrid" ShowGroupPanel="False"
AutoGenerateColumns="False" " ShowColumnHeaders="False" >
<telerik:RadGridView.HierarchyChildTemplate>
<DataTemplate>
<!-- level 3 -->
<telerik:RadGridView Name="level3" ShowGroupPanel="False" AutoGenerateColumns="False"
ColumnsWidthMode="Auto" ShowColumnHeaders="False">
<telerik:RadGridView.HierarchyChildTemplate>
<DataTemplate>
<!-- level 4 -->
<telerik:RadGridView Name="level4" ShowGroupPanel="False"
ColumnsWidthMode="Auto" AutoGenerateColumns="False" ShowColumnHeaders="False">
</telerik:RadGridView>
</DataTemplate>
</telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>
</DataTemplate>
</telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>
</DataTemplate>
</telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>
</DataTemplate>
</telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>
the above same is workong in older version..
I think u uderstand what I did....
I attached grid output images in both version controls
Also one more question....
Can We remove "+" sign which is coming in Grid
You still need at least one GridViewTableDefinition. Maybe it will be better to use a bit different approach for hierarchy with row details instead.
Best wishes,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Can u please give me example so that I can understant..
I am very happy if u give me....
thank's
You can download the application from the blog post.
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
HI,
Thank u for giving solution..
But in given example in blog Post , only one level Hirarchy.. i.e in row details they show grid but my requirement in that Grid which is in
row details again hirarchy should be present like images is attached to this post..
The same output is achived through older version
Runtime : v2.0.50727
Version : 2009.2.710.1020
but when I am using ur newer version dll (Latest).. that output is not the same means it not showing child grid..
I have this problem..
u are saying that use "GridViewTableDefinition"
but for this required to specify these property...
ParentFieldDescriptorName
="_PersonId" ChildFieldDescriptorName="_ManagerId"
but using this how I am going to achive multilevel hirarchy...
output should look like in attached file..
Pls ,, Help me ....
Thanks
You can nest unlimited levels of row details - just place another grid in your child grid row details template, etc.
Best wishes,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Thanks for replying...
Now I am able to create Grid what I want ..
But My number of RowDetails template required is known at runtime
How to add RowDetailsTemplate at runtime in parent grid...
Thanks ,
Ganesh Jagdale
You can check this help article to know more how to add row details at runtime:
http://www.telerik.com/help/silverlight/gridview-rows-row-details.html
Regards,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.