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

first day of week not changing per Locale

7 Answers 134 Views
Calendar - Xamarin.Android
This is a migrated thread and some comments may be shown as answers.
Shalin
Top achievements
Rank 1
Shalin asked on 29 Jan 2019, 09:52 AM

hi,

i have latest version of RadCalendar. if i change phone language to norway it should display start of week from Monday. 

but it is not ! Any bug or am i missing something

7 Answers, 1 is accepted

Sort by
0
Shalin
Top achievements
Rank 1
answered on 29 Jan 2019, 09:57 AM
tested on ios 12+ iphone 6, native calendar works fine but not telerik.
0
Yana
Telerik team
answered on 30 Jan 2019, 12:24 PM
Hello Shalin,

Could you confirm that you're using Calendar for Xamarin.Forms control? I am asking as the selected product is Calendar for Xamarin.Android and you've mentioned iphone device.

Regards,
Yana
Progress Telerik
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
0
Shalin
Top achievements
Rank 1
answered on 30 Jan 2019, 12:49 PM
Yes, i am using xamarin forms. For android it seems working fine. Not iOS
0
Yana
Telerik team
answered on 31 Jan 2019, 02:05 PM
Hello Shalin,

I confirm this is an issue in RadCalendar on iOS - I have logged it on your behalf in our public system, you could track its status at the link below:
https://feedback.telerik.com/xamarin/1385753-calendar-ios-first-day-of-week-is-not-changed-per-locale

I have updated your points as a small sign of gratitude for your involvement.

I am sorry for any inconvenience caused.

Regards,
Yana
Progress Telerik
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
0
Shalin
Top achievements
Rank 1
answered on 01 Feb 2019, 03:38 AM

hi,

1) Do we have any work around to fix this ? using renderers

2) or hard coding start of week ?

0
Shalin
Top achievements
Rank 1
answered on 01 Feb 2019, 05:52 AM

well i have an answer, using renderer

public class WeekCalendarRenderer : CalendarRenderer
    {
        protected override void OnElementChanged (ElementChangedEventArgs<RadCalendar> e)
        {
            base.OnElementChanged(e);
            if (Control?.Calendar != null && Element != null)
            {
                NSCalendar calendar = new NSCalendar(NSCalendarType.Gregorian);
                calendar.Locale = NSLocale.CurrentLocale;
 
                this.Control.Calendar = calendar;
            }
        }      
    }
0
Yana
Telerik team
answered on 01 Feb 2019, 09:03 AM
Hi Shalin,

Thank you for the update.  Indeed, the issue could be work-arounded with renderer like this.

Regards,
Yana
Progress Telerik
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
Tags
Calendar - Xamarin.Android
Asked by
Shalin
Top achievements
Rank 1
Answers by
Shalin
Top achievements
Rank 1
Yana
Telerik team
Share this question
or