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

Newer Version Issue

9 Answers 129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ganesh Jagdale
Top achievements
Rank 1
Ganesh Jagdale asked on 04 Jan 2010, 12:42 PM
Hi telerik,
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

Sort by
0
Vlad
Telerik team
answered on 04 Jan 2010, 01:00 PM
Hello,

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.
0
Ganesh Jagdale
Top achievements
Rank 1
answered on 04 Jan 2010, 03:17 PM
Hi,
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

 

0
Vlad
Telerik team
answered on 04 Jan 2010, 03:30 PM
Hi,

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.
0
Ganesh Jagdale
Top achievements
Rank 1
answered on 04 Jan 2010, 04:06 PM
Hi,

Can u please give me example so that I can understant..
I am very happy if u give me....
thank's
0
Vlad
Telerik team
answered on 04 Jan 2010, 04:15 PM
Hello,

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.
0
Ganesh Jagdale
Top achievements
Rank 1
answered on 05 Jan 2010, 09:10 AM

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
0
Vlad
Telerik team
answered on 05 Jan 2010, 09:32 AM
Hi,

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.
0
Ganesh Jagdale
Top achievements
Rank 1
answered on 05 Jan 2010, 10:12 AM
Hi Vlad ,
   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
0
Vlad
Telerik team
answered on 05 Jan 2010, 02:59 PM
Hi,

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.
Tags
GridView
Asked by
Ganesh Jagdale
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ganesh Jagdale
Top achievements
Rank 1
Share this question
or