I use the RadTimePicker on the GridViewDataColumn.
I want to be seen as 24 hours.
Can not use this.radTimePickerStartOn.Culture.DateTimeFormat.ShortTimePattern = "HH:mm:ss";
What should I do?
<telerikGridView:RadGridView x:Name="radGridView"
Grid.Row="2"
ItemsSource="{Binding UserCards}"
SelectedItem="{Binding SelectedUserCard, Mode=TwoWay}"
Margin="5"
SelectionMode="Single"
ShowGroupPanel="False"
AutoExpandGroups="True"
AutoGenerateColumns="False"
RowDetailsVisibilityMode="Collapsed"
RowIndicatorVisibility="Collapsed"
CanUserFreezeColumns="True"
FrozenColumnCount="2">
<telerikGridView:RadGridView.Columns>
<telerikGridView:GridViewDataColumn Width="190" Header="{Binding ResourceWrapper.StringTable.StartedOn, Source={StaticResource StringTable}}" CellStyleSelector="{StaticResource UserCardCellStyleSelector}" DataMemberBinding="{Binding Card.StartedOn, Mode=TwoWay}" DataFormatString="{}{0:yyyy-MM-dd HH:mm:ss}">
<telerikGridView:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<telerikInput:RadDatePicker DateTimeWatermarkContent="{x:Null}" SelectedDate="{Binding StartDate, Mode=TwoWay}" Width="100" IsTooltipEnabled="False" />
<StackPanel HorizontalAlignment="Left" Width="90">
<telerikInput:RadTimePicker x:Name="radTimePickerStartOn" SelectedValue="{Binding StartTime, Mode=TwoWay}" MinWidth="80" Width="90" Margin="0,0,0,0" Culture="ko" />
</StackPanel>
</StackPanel>
</DataTemplate>
</telerikGridView:GridViewDataColumn.CellEditTemplate>
</telerikGridView:GridViewDataColumn>
</telerikGridView:RadGridView.Columns>
</telerikGridView:RadGridView>
I want to be seen as 24 hours.
Can not use this.radTimePickerStartOn.Culture.DateTimeFormat.ShortTimePattern = "HH:mm:ss";
What should I do?
<telerikGridView:RadGridView x:Name="radGridView"
Grid.Row="2"
ItemsSource="{Binding UserCards}"
SelectedItem="{Binding SelectedUserCard, Mode=TwoWay}"
Margin="5"
SelectionMode="Single"
ShowGroupPanel="False"
AutoExpandGroups="True"
AutoGenerateColumns="False"
RowDetailsVisibilityMode="Collapsed"
RowIndicatorVisibility="Collapsed"
CanUserFreezeColumns="True"
FrozenColumnCount="2">
<telerikGridView:RadGridView.Columns>
<telerikGridView:GridViewDataColumn Width="190" Header="{Binding ResourceWrapper.StringTable.StartedOn, Source={StaticResource StringTable}}" CellStyleSelector="{StaticResource UserCardCellStyleSelector}" DataMemberBinding="{Binding Card.StartedOn, Mode=TwoWay}" DataFormatString="{}{0:yyyy-MM-dd HH:mm:ss}">
<telerikGridView:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<telerikInput:RadDatePicker DateTimeWatermarkContent="{x:Null}" SelectedDate="{Binding StartDate, Mode=TwoWay}" Width="100" IsTooltipEnabled="False" />
<StackPanel HorizontalAlignment="Left" Width="90">
<telerikInput:RadTimePicker x:Name="radTimePickerStartOn" SelectedValue="{Binding StartTime, Mode=TwoWay}" MinWidth="80" Width="90" Margin="0,0,0,0" Culture="ko" />
</StackPanel>
</StackPanel>
</DataTemplate>
</telerikGridView:GridViewDataColumn.CellEditTemplate>
</telerikGridView:GridViewDataColumn>
</telerikGridView:RadGridView.Columns>
</telerikGridView:RadGridView>