This is a migrated thread and some comments may be shown as answers.
Calendar does not change first day of week according to current culture
1 Answer 29 Views
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 10 Oct 2016, 02:38 PM

I changed the region setting in ios to French.

I've checked that CultureInfo.CurrentUICulture.DateTimeFormat.FirstDayOfWeek returns 1 (for monday) instead of 0 (for sunday).

The calendar control still displays sunday as the first day of week.

 

I'm using Telerik for Xamarin trial version 2016.3.914.231

 

1 Answer, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 13 Oct 2016, 10:24 AM
Hello Benjamin,

Thank you for contacting us.
The desired behavior cannot be achieved "out of the box", but the good news is that there is a simple solution which achieves it. You need only to implement a Custom calendar renderer in which you could set explicitly the current device's locale.
Please find attached a sample project demonstrating this approach.

Regards,
Vladislav
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Vladislav
Telerik team
Share this question
or