ScheduleView shows incorrect time format when changing LocalizationManager.DefaultCulture

2 posts, 0 answers
  1. Sandi Markon
    Sandi Markon avatar
    101 posts
    Member since:
    Jul 2012

    Posted 21 Nov 2012 Link to this post

    Hello.

    I am having some trouble localizing the ScheduleView control. The problem lies in the 24-hour format, that certain cultures constitute (the slovenian "sl-SI" culture, in particular).

    When I set the LocalizationManager.DefaultCulture to, let's say, "en-US", the time format is as expected (in terms of the AM and PM designators), but when I set it to a 24-hour time format culture (such as Slovenian), only the AM and PM designators go away, but the time format remains a 12-hour one.

    Is this a bug or am I missing something?

    Thanks.

    EDIT: I also noticed (in the week view definition) that when switching between cultures, sometimes the first day of the week is set to Monday, and sometimes to Sunday (which is odd, because all cultures, that are switched between, have Monday set as the first day of the week).
  2. Ventzi
    Admin
    Ventzi avatar
    114 posts

    Posted 23 Nov 2012 Link to this post

    Hello Sandi,

    Thank you for reporting this issue. We will investigate it further.

    Meanwhile you could set the TimerulerMajorTickStringFormat property of your ViewDefinition to show 24 hours per day. Following line shows you how to do this.
    TimerulerMajorTickStringFormat=" {0:HH:mm}"

    We have also on each ViewDefinition a FirstDayOfWeek property which you could set additionally in order to display the week correctly.

    I hope this helps.

    All the best,
    Ventzi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top