Hello Telerik,
We use a ResourceFIle for all displayed text in our application in order to support Globalization. This works great for the GridViewDataColumn.Header unless it is in a child GridView.
In the example below, we were forced to use a custom header in in the RowDetailsTemplate in order for the Header to Display correctly. If we set the Header property in _gridDetails like in _gridPing it does not work. There were no binding errors, but the Header text was the displaying the binding property name, not the ResourceFile property value.
Is this a known issue? I would like to use the simpler syntax if possible.
Thank you,
-Mark
<datagrid:NstrumentDataGrid x:Name="_gridPing" Grid.Row="1" ItemsSource="{Binding Responses}" > <datagrid:NstrumentDataGrid.Columns> <telerik:GridViewToggleRowDetailsColumn /> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Address}" Width="150" DataMemberBinding="{Binding Path=Address}" /> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Bytes}" Width="75" DataMemberBinding="{Binding Path=BufferLength}"/> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Sent}" Width="75" DataMemberBinding="{Binding Path=Sent}"/> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Received}" Width="90" DataMemberBinding="{Binding Path=Received}"/> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.PercentLost}" Width="75" DataMemberBinding="{Binding Path=PercentLost}" /> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Min}" Width="75" DataMemberBinding="{Binding Path=Min}" /> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Avg}" Width="75" DataMemberBinding="{Binding Path=Avg}" /> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Max}" Width="75" DataMemberBinding="{Binding Path=Max}" /> </datagrid:NstrumentDataGrid.Columns> <datagrid:NstrumentDataGrid.RowDetailsTemplate> <DataTemplate > <datagrid:NstrumentDataGrid x:Name="_gridDetail" ItemsSource="{Binding Responses}" Margin="25,0,0,0" BorderThickness="0" > <datagrid:NstrumentDataGrid.Columns> <telerik:GridViewDataColumn Width="125" DataMemberBinding="{Binding Path=Status}" > <telerik:GridViewDataColumn.Header> <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Status}"/> </telerik:GridViewDataColumn.Header> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn Width="125" DataMemberBinding="{Binding Path=RoundTripTime}" > <telerik:GridViewDataColumn.Header> <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.RTT}"/> </telerik:GridViewDataColumn.Header> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn Width="125" DataMemberBinding="{Binding Path=BufferLength}" > <telerik:GridViewDataColumn.Header> <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.BufferLength}"/> </telerik:GridViewDataColumn.Header> </telerik:GridViewDataColumn> </datagrid:NstrumentDataGrid.Columns> </datagrid:NstrumentDataGrid> </DataTemplate> </datagrid:NstrumentDataGrid.RowDetailsTemplate> <telerik:RadContextMenu.ContextMenu > <telerik:RadContextMenu x:Name="_contextMenu" Opened="RadContextMenu_Opened"/> </telerik:RadContextMenu.ContextMenu> </datagrid:NstrumentDataGrid>