Child Grid in silverlight

2 posts, 0 answers
  1. Ramyashree
    Ramyashree avatar
    29 posts
    Member since:
    Jan 2011

    Posted 21 Jan 2011 Link to this post


    I have a Grid which displays a selected fields of an object... The code snippet for grid is as follows...

    <telerik:RadGridView   RowDetailsVisibilityMode="VisibleWhenSelected" 
                                             Name="radGridViewCountry" Height="300" 
                                             ItemsSource="{Binding Mode=TwoWay,
    I also have a rowdetails template  as below using which I can display some additional fields of the same itemsource...

                                    <StackPanel Orientation="Horizontal" 
                                        <TextBlock Text="ID: " />
                                        <TextBlock Text="{Binding ID}" />
                                         <TextBlock Text="Country: " />
                                        <TextBlock Text="{Binding Name}" />
                                </DataTemplate> </telerik:RadGridView.RowDetailsTemplate>

    I want to achieve the same thing using a child grid ,Iis that possible...? I tried the three examples given in the demos but not able to do what i actually wanted.... Any help would be appreciated..

    Thanks and Regds.,
  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 21 Jan 2011 Link to this post

    Hello Ramyashree,

    It is possible. You have to place two grids on the page. The first one will be the master grid and it will be bound to the collection containing the master entities, let's say football clubs.

    Suppose each football club POCO has a collection property called Players, which are also POCO's. You can then bind the second grid's ItemsSource to the first grid's SelectedItem.Players.

    In this way, each time you select a different club in the master grid, the child grid will display the players for the selected club.

    I hope this helps.

    Best wishes,
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft R3 2016 release webinar banner
Back to Top