Default Locale property value

Default value for Locale property on SfSchedule should be current culture of the system -> CultureInfo.CurrentUICulture

Better: Default value should be null/empty and if so, CultureInfo.CurrentUICulture should be used under the hood.
Even better: Remove Locale property at all and simly use
CultureInfo.CurrentUICulture.

Currently it is hard coded with "en"  which is not intuitive.

Another issue:
I don't want to display times in AM/PM style when using week view (see attached image). How can I use 24 hour format, or use my own formatting?


1 Reply

GC Ganeshamoorthy Chandramoorthy Syncfusion Team May 10, 2018 06:13 PM UTC

Hi Daniel, 
 
We have checked with the provided information. 
 
# Query1: 
SfSchedule provides complete localization support by specifying Locale property. It is default behavior of SfSchedule. As you mentioned, it would be better to use current culture of the system using CultureInfo.CurrentUICulture than a Locale property with a default value. But, if we remove the Locale property or change its default value to CurrentUICulture, it will break the existing behavior of the control. So, we can’t remove the Locale property or change its default value. You need to set Locale property value as CurrentUICulture. 
 
# Query2: 
In WeekView time label format can be customized by using TimeFormat property. Similarly, you can customize the time label format of DayView and WorkWeekView. Kindly find the code snippet below, 
 
Code Snippet: 
schedule.ScheduleView = ScheduleView.WeekView;             
WeekViewSettings weekViewSettings = new WeekViewSettings();             
WeekLabelSettings weekLabelSettings = new WeekLabelSettings();             
weekLabelSettings.TimeFormat = "HH:mm";             
weekViewSettings.WeekLabelSettings = weekLabelSettings;             
schedule.WeekViewSettings = weekViewSettings; 
 
You can also refer our online User Guide Documentation by using the below link, 
 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Ganeshamoorthy C 


Loader.
Up arrow icon