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

RowDetails with a GridView inside doesn't work

2 Answers 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
lina fetisova
Top achievements
Rank 1
lina fetisova asked on 09 Jun 2010, 06:58 AM
Good day!
I have a grid:

<Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <DataTemplate x:Key="ClientInfoRowDetailsTemplate">
                <local:DetailsForOrders />
            </DataTemplate>
        </Grid.Resources>
       <telerikGridView:RadGridView RowDetailsTemplate="{StaticResource ClientInfoRowDetailsTemplate}">
      ......
      </telerikGridView:RadGridView>
</Grid>


when I write in DetailsForOrders.xaml

<TextBlock Text="{Binding ClientName}" Margin="12,0,0,0" Grid.Row="0"
                                Grid.Column="2" />
<TextBlock  Text="{Binding CreatedOn}" Margin="12,0,0,0" Grid.Row="1"
                                Grid.Column="2" />


everything works allright.
But when I write in
DetailsForOrders.xaml

<telerikGridView:RadGridView
            AutoGenerateColumns="False"
            CanUserFreezeColumns="False"
            FontFamily="Verdana"
            Height="auto" HorizontalAlignment="Left"
            IsReadOnly="False"
            ItemsSource="{Binding}"
            MaxWidth="900"
            MinWidth="500"
            Name="grServices"
            RowIndicatorVisibility="Collapsed"
            ScrollMode="RealTime"
            ShowGroupPanel="False"
            telerik:Theming.Theme="Windows7"
            UseLayoutRounding="True"
            VerticalAlignment="Top"
            Width="auto" Grid.Row="2">
            <telerikGridView:RadGridView.Columns>
                <telerikGridView:GridViewDataColumn Header="Client" DataMemberBinding="{Binding ClientName}"  IsReadOnly="True" MaxWidth="300" MinWidth="100" Width="auto"/>
                <telerikGridView:GridViewDataColumn Header="Date" UniqueName="CreatedOn" IsReadOnly="True" MaxWidth="100" MinWidth="100" Width="auto"/>
            </telerikGridView:RadGridView.Columns>
        </telerikGridView:RadGridView>


nothing works. Why?




2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 10 Jun 2010, 12:22 PM
Hi lina fetisova,

 
I am sending you a sample project that corresponds to your requirements. 
I hope you find it useful, but in case I have misunderstood your issue, please do not hesitate to contact me.

Kind regards,
Maya
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
lina fetisova
Top achievements
Rank 1
answered on 15 Jun 2010, 06:23 AM
Maya, it works!!! thank you very much!!!!!!!!!!!
Tags
GridView
Asked by
lina fetisova
Top achievements
Rank 1
Answers by
Maya
Telerik team
lina fetisova
Top achievements
Rank 1
Share this question
or