Localization Problems

2 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    885 posts
    Member since:
    Nov 2003

    Posted 02 Jul 2014 Link to this post


    while the DateTimePicker (when adding a new Appointment) works as expected the RadScheduleView itself has several "strange" behaviors.
    First - Hours are displayed in 12h format (without AM / PM marker) not in 24 hour format as set by the OS (and used by the DateTimePicker).

    Next - in Timeline the Date separator is a minus sign instead of a dot.
    So it shows (in correct order day month year)  03-07-2014 instead of 3.7.2014 or at least 03.07.2014.
  2. Kalin
    Kalin avatar
    1333 posts

    Posted 04 Jul 2014 Link to this post

    Hello Manfred,

    I'll go straight to your questions:

    1. The time is displayed in the following format by default - h:mm tt. However you can easily make ti showing the operation system format by setting the TimerulerMajorTickStringFormat property of the ViewDefition as shown below:
    <telerik:DayViewDefinition TimerulerMajorTickStringFormat="{}{0:t}" />

    2. The same for Timeline date format - it has a default value of dd-MM-yyyy. You could you easily apply the needed one by setting TimerulerGroupStringFormat property of the TimelineViewDefinition as shown below:
    <telerik:TimelineViewDefinition TimerulerGroupStringFormat="{}{0:dd.MM.yyyy}" />

    Hope this helps.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top