Defining time display (display of minutes and secundes)

2 posts, 0 answers
  1. Gaga
    Gaga avatar
    4 posts
    Member since:
    Oct 2010

    Posted 27 Dec 2010 Link to this post

    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...)
  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 27 Dec 2010 Link to this post

    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}}" ..........

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top