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

ScheduleView shows incorrect time format when changing LocalizationManager.DefaultCulture

1 Answer 87 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Sandi Markon
Top achievements
Rank 1
Sandi Markon asked on 21 Nov 2012, 02:13 PM
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).

1 Answer, 1 is accepted

Sort by
0
Ventzi
Telerik team
answered on 23 Nov 2012, 12:50 PM
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.

Tags
ScheduleView
Asked by
Sandi Markon
Top achievements
Rank 1
Answers by
Ventzi
Telerik team
Share this question
or