Hallo!
I have a GridView with IsLocalizationLanguageRespected="False".
In the column "Zeit" the date format ist correct (see picture).
In the RowDetailsTemplate the date format for "ErstellungsZeit" is wrong.
Following is my code of my RadGridView:
<Telerik:RadGridView x:Name="xCMUKorrelationGridView"
Grid.Row="1"
RowHeight="25"
CanUserFreezeColumns="False"
RowIndicatorVisibility="Visible"
ItemsSource="{Binding KorrelationItems}"
IsLocalizationLanguageRespected="False"
IsBusy="{Binding IsBusy}"
CellEditEnded="CMUKorrelationGridView_CellEditEnded"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
AutoGenerateColumns="False"
RowDetailsVisibilityMode="VisibleWhenSelected"
DistinctValuesLoading="OnCMUKorrelationGridView_DistinctValuesLoading">
<Telerik:RadGridView.ColumnGroups>
<Telerik:GridViewColumnGroup Name="AktuelleRegressionsParameter"
Header="{Binding ApplicationStrings.AktuelleRegressionsParameter, Source={StaticResource ResourceWrapperCore}}" />
<Telerik:GridViewColumnGroup Name="VorherigeRegressionsParameter"
Header="{Binding ApplicationStrings.VorherigeRegressionsParameter, Source={StaticResource ResourceWrapperCore}}" />
</Telerik:RadGridView.ColumnGroups>
<Telerik:RadGridView.Columns>
<Telerik:GridViewDataColumn x:Name="xId"
Width="50"
IsReadOnly="True"
Header="{Binding ApplicationStrings.Id, Source={StaticResource ResourceWrapperCore}}"
DataMemberBinding="{Binding Path=ABId}"
CellStyle="{StaticResource DisabledGridViewCellStyle}"
ShowColumnWhenGrouped="False"
TextAlignment="Right" />
<Telerik:GridViewDataColumn x:Name="xName"
MinWidth="150"
Width="*"
IsReadOnly="True"
Header="{Binding ApplicationStrings.Name, Source={StaticResource ResourceWrapperCore}}"
DataMemberBinding="{Binding Path=Name}"
CellStyle="{StaticResource DisabledGridViewCellStyle}"
ShowColumnWhenGrouped="False" />
<Telerik:GridViewDataColumn x:Name="xTyp"
MinWidth="120"
IsReadOnly="True"
Header="{Binding ApplicationStrings.Typ, Source={StaticResource ResourceWrapperCore}}"
DataMemberBinding="{Binding Path=VirtuellerTrendTyp.Name}"
CellStyle="{StaticResource DisabledGridViewCellStyle}"
ShowColumnWhenGrouped="False">
<Telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding VirtuellerTrendTyp.Name}" />
</StackPanel>
</DataTemplate>
</Telerik:GridViewDataColumn.CellTemplate>
</Telerik:GridViewDataColumn>
<Telerik:GridViewDataColumn x:Name="xStatus"
MinWidth="50"
IsReadOnly="True"
DataMemberBinding="{Binding Path=CMUKorrelation.CMUKorrelationStatus.Name}"
Header="{Binding ApplicationStrings.Status, Source={StaticResource ResourceWrapperCore}}"
ColumnGroupName="AktuelleRegressionsParameter"
ShowColumnWhenGrouped="False"
ShowDistinctFilters="True"
ShowFieldFilters="False" />
<Telerik:GridViewDataColumn x:Name="xAktuellerParameter1"
Width="60"
IsReadOnlyBinding="{Binding CMUKorrelation, Converter={StaticResource IstCMUKorrelationEditierbarConverter}, ConverterParameter=Invert}"
DataMemberBinding="{Binding Path=CMUKorrelation.Parameter1, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}"
TextAlignment="Right"
ColumnGroupName="AktuelleRegressionsParameter">
<Telerik:GridViewDataColumn.Header>
<TextBlock Text="{Binding ApplicationStrings.P1, Source={StaticResource ResourceWrapperCore}}"
ToolTipService.ToolTip="{Binding ApplicationStrings.Parameter1, Source={StaticResource ResourceWrapperCore}}" />
</Telerik:GridViewDataColumn.Header>
</Telerik:GridViewDataColumn>
<Telerik:GridViewDataColumn x:Name="xAktuellerParameter2"
Width="60"
IsReadOnlyBinding="{Binding CMUKorrelation, Converter={StaticResource IstCMUKorrelationEditierbarConverter}, ConverterParameter=Invert}"
DataMemberBinding="{Binding Path=CMUKorrelation.Parameter2, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}"
TextAlignment="Right"
ColumnGroupName="AktuelleRegressionsParameter">
<Telerik:GridViewDataColumn.Header>
<TextBlock Text="{Binding ApplicationStrings.P2, Source={StaticResource ResourceWrapperCore}}"
ToolTipService.ToolTip="{Binding ApplicationStrings.Parameter2, Source={StaticResource ResourceWrapperCore}}" />
</Telerik:GridViewDataColumn.Header>
</Telerik:GridViewDataColumn>
<Telerik:GridViewDataColumn x:Name="xBestimmungsmass"
MinWidth="40"
IsReadOnly="True"
DataMemberBinding="{Binding Path=CMUKorrelation.Bestimmungsmass}"
ColumnGroupName="AktuelleRegressionsParameter"
TextAlignment="Right"
ShowColumnWhenGrouped="False"
ShowDistinctFilters="False"
ShowFieldFilters="True">
<Telerik:GridViewDataColumn.Header>
<TextBlock Text="{Binding ApplicationStrings.R2, Source={StaticResource ResourceWrapperCore}}"
ToolTipService.ToolTip="{Binding ApplicationStrings.Bestimmungsmass, Source={StaticResource ResourceWrapperCore}}" />
</Telerik:GridViewDataColumn.Header>
</Telerik:GridViewDataColumn>
<Telerik:GridViewCheckBoxColumn x:Name="xIstBenutzerdefiniert"
MinWidth="25"
IsReadOnly="True"
DataMemberBinding="{Binding Path=CMUKorrelation.IstBenutzerdefiniert}"
ColumnGroupName="AktuelleRegressionsParameter"
ShowColumnWhenGrouped="False"
ShowDistinctFilters="True"
ShowFieldFilters="False">
<Telerik:GridViewCheckBoxColumn.Header>
<TextBlock Text="{Binding ApplicationStrings.AbkuerzungBenutzerdefiniert, Source={StaticResource ResourceWrapperCore}}"
ToolTipService.ToolTip="{Binding ApplicationStrings.Benutzerdefiniert, Source={StaticResource ResourceWrapperCore}}" />
</Telerik:GridViewCheckBoxColumn.Header>
</Telerik:GridViewCheckBoxColumn>
<Telerik:GridViewDataColumn x:Name="xVorherigerParameter1"
MinWidth="40"
MaxWidth="80"
Width="*"
IsReadOnly="True"
TextAlignment="Right"
DataMemberBinding="{Binding Path=VorherigerParameter1}"
ColumnGroupName="VorherigeRegressionsParameter"
CellStyle="{StaticResource DisabledGridViewCellStyle}">
<Telerik:GridViewDataColumn.Header>
<TextBlock Text="{Binding ApplicationStrings.pP1, Source={StaticResource ResourceWrapperCore}}"
ToolTipService.ToolTip="{Binding ApplicationStrings.VorherigerParameter1, Source={StaticResource ResourceWrapperCore}}" />
</Telerik:GridViewDataColumn.Header>
</Telerik:GridViewDataColumn>
<Telerik:GridViewDataColumn x:Name="xVorherigerParameter2"
MinWidth="40"
MaxWidth="80"
Width="*"
IsReadOnly="True"
TextAlignment="Right"
DataMemberBinding="{Binding Path=VorherigerParameter2}"
ColumnGroupName="VorherigeRegressionsParameter"
CellStyle="{StaticResource DisabledGridViewCellStyle}">
<Telerik:GridViewDataColumn.Header>
<TextBlock Text="{Binding ApplicationStrings.pP2, Source={StaticResource ResourceWrapperCore}}"
ToolTipService.ToolTip="{Binding ApplicationStrings.VorherigerParameter2, Source={StaticResource ResourceWrapperCore}}" />
</Telerik:GridViewDataColumn.Header>
</Telerik:GridViewDataColumn>
<Telerik:GridViewDataColumn x:Name="xVorherigesBestimmungsmass"
MinWidth="40"
MaxWidth="80"
Width="*"
IsReadOnly="True"
TextAlignment="Right"
DataMemberBinding="{Binding Path=VorherigesBestimmungsmass}"
ColumnGroupName="VorherigeRegressionsParameter"
CellStyle="{StaticResource DisabledGridViewCellStyle}">
<Telerik:GridViewDataColumn.Header>
<TextBlock Text="{Binding ApplicationStrings.pR2, Source={StaticResource ResourceWrapperCore}}"
ToolTipService.ToolTip="{Binding ApplicationStrings.VorherigesBestimmungsmass, Source={StaticResource ResourceWrapperCore}}" />
</Telerik:GridViewDataColumn.Header>
</Telerik:GridViewDataColumn>
</Telerik:RadGridView.Columns>
<Telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<Grid x:Name="xGridDetails"
Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Telerik:Label Content="{Binding ApplicationStrings.Erstellungszeit, Source={StaticResource ResourceWrapperCore}, Converter={StaticResource FuegeDoppelPunktHinzuConverter}}"
IsTabStop="False"
Grid.Column="0"
Grid.Row="0"
FontSize="10" />
<TextBox Text="{Binding CMUKorrelation.ErstellungsZeit, StringFormat={StaticResource DatumsZeitFormatLang}}"
IsReadOnly="True"
Grid.Column="1"
Grid.Row="0"
FontSize="10"
Height="20"
Margin="5,5,5,0" />
<Telerik:Label Content="{Binding ApplicationStrings.LernphaseStartZeitpunkt, Source={StaticResource ResourceWrapperCore}, Converter={StaticResource FuegeDoppelPunktHinzuConverter}}"
IsTabStop="False"
Grid.Column="0"
Grid.Row="1"
FontSize="10" />
<TextBox Text="{Binding CMUKorrelation.LernPhaseBeginn, StringFormat={StaticResource DatumsZeitFormatLang}}"
IsReadOnly="True"
Grid.Column="1"
Grid.Row="1"
FontSize="10"
Height="20"
Margin="5,5,5,0" />
<Telerik:Label Content="{Binding ApplicationStrings.LernphaseEndeZeitpunkt, Source={StaticResource ResourceWrapperCore}, Converter={StaticResource FuegeDoppelPunktHinzuConverter}}"
IsTabStop="False"
Grid.Column="0"
Grid.Row="2"
FontSize="10" />
<TextBox Text="{Binding CMUKorrelation.LernPhaseEnde, StringFormat={StaticResource DatumsZeitFormatLang}}"
IsReadOnly="True"
Grid.Column="1"
Grid.Row="2"
FontSize="10"
Height="20"
Margin="5,5,5,0" />
<Telerik:Label Content="{Binding ApplicationStrings.KorrelationsSignal, Source={StaticResource ResourceWrapperCore}, Converter={StaticResource FuegeDoppelPunktHinzuConverter}}"
IsTabStop="False"
Grid.Column="0"
Grid.Row="3"
FontSize="10" />
<TextBox Text="{Binding CMUKorrelation.KorrelationsSignal, Converter={StaticResource CMUKorrelationsSignalSplitterConverter}}"
IsReadOnly="True"
Grid.Column="1"
Grid.Row="3"
FontSize="10"
Height="20"
Margin="5,5,5,0" />
<Telerik:Label Content="{Binding ApplicationStrings.Status, Source={StaticResource ResourceWrapperCore}, Converter={StaticResource FuegeDoppelPunktHinzuConverter}}"
IsTabStop="False"
Grid.Column="0"
Grid.Row="4"
FontSize="10" />
<TextBox Text="{Binding CMUKorrelation.CMUKorrelationStatus.Name}"
IsReadOnly="True"
Grid.Column="1"
Grid.Row="4"
FontSize="10"
Height="20"
Margin="5,5,5,0" />
<Telerik:Label Content="{Binding ApplicationStrings.Fehler, Source={StaticResource ResourceWrapperCore}, Converter={StaticResource FuegeDoppelPunktHinzuConverter}}"
IsTabStop="False"
Grid.Column="0"
Grid.Row="5"
FontSize="10" />
<TextBox Text="{Binding CMUKorrelation.Fehler, Converter={StaticResource CMUKorrelationsSignalSplitterConverter}}"
IsReadOnly="True"
Grid.Column="1"
Grid.Row="5"
FontSize="10"
Height="20"
Margin="5,5,5,0" />
</Grid>
</DataTemplate>
</Telerik:RadGridView.RowDetailsTemplate>
</Telerik:RadGridView>