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

Defining time display (display of minutes and secundes)

1 Answer 35 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Gaga
Top achievements
Rank 2
Gaga asked on 27 Dec 2010, 04:28 PM
Is there any way to disable/enable display of minutes and secundes in RadDateTimePicker?

(I know that I can define custom formatting like it is described here, but I would like to set Culture based on user country, so I only want to control if time in RadDateTimePicker should contain minutes and secundes without explicit formatting and order definition...)

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 27 Dec 2010, 05:05 PM
Hi Gaga,

You can create a custom converter that will be in response of the format correctness. All you have to do is to edit the template of the control and add the converter to the RadWatermarkTextBox Text's binding:

<telerik:RadWatermarkTextBox x:Name="PART_DateTimeInput" Grid.Column="0"
                                Text="{Binding DateTimeText, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, Converter={StaticResource YourCustomConverter}}" ..........



Regards,
Kaloyan
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
DateTimePicker
Asked by
Gaga
Top achievements
Rank 2
Answers by
Kaloyan
Telerik team
Share this question
or