first day of week not changing per Locale

8 posts, 0 answers
  1. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 29 Jan 2019 Link to this post

    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

  2. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 29 Jan 2019 Link to this post

    tested on ios 12+ iphone 6, native calendar works fine but not telerik.
  3. Yana
    Admin
    Yana avatar
    5031 posts

    Posted 30 Jan 2019 Link to this post

    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
  4. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 30 Jan 2019 in reply to Yana Link to this post

    Yes, i am using xamarin forms. For android it seems working fine. Not iOS
  5. Yana
    Admin
    Yana avatar
    5031 posts

    Posted 31 Jan 2019 Link to this post

    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
  6. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 31 Jan 2019 in reply to Yana Link to this post

    hi,

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

    2) or hard coding start of week ?

  7. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 31 Jan 2019 Link to this post

    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;
                }
            }      
        }
  8. Yana
    Admin
    Yana avatar
    5031 posts

    Posted 01 Feb 2019 Link to this post

    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
Back to Top