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?
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?