Calendar Type is not working properly

3 posts, 0 answers
  1. Joy Rex
    Joy Rex avatar
    2 posts
    Member since:
    Nov 2012

    Posted 16 Jul 2015 Link to this post

    While coming across your documentation here, about the Calendar Type in RadCalendarView I wasn't succeeding with the below code snippet

    Locale locale= new Locale("ja_JP");
    Calendar _Calendar = Calendar.getInstance(locale);
    this.calendarView.setCalendar(_Calendar); 

    It just change the FirstDayOfWeek and thus days will be wrong (for example, Jul 16, 2015 should be Thursday , but it shows wednesday).

    Am i missed something, or is it a bug or something?

     

     

  2. Joy Rex
    Joy Rex avatar
    2 posts
    Member since:
    Nov 2012

    Posted 16 Jul 2015 in reply to Joy Rex Link to this post

    Also i'm in need of creating some other Calendar other than GregorianCalendar like JapaneseImperialCalendar.
  3. DevCraft banner
  4. Todor
    Admin
    Todor avatar
    778 posts

    Posted 17 Jul 2015 Link to this post

    Hello,

    Thank you for your interest in RadCalendarView.

    As the documentation states, you can change the language by using the setLocale method. So in order to change the language of the day names you need this line:

    calendarView.setLocale(Locale.JAPAN);

    I am not sure about the Japanese names, however I can reproduce the screenshot from the documentation which also changes the first day of the week to Monday, but the date seems to be in the correct column. Please clarify how to reproduce the issue with the wrong placement of the dates.

    As to the setCalendar method, it can be used for providing an instance of type different than GregorianCalendar. This can be a class that extends the Calendar class, however GregorianCalendar is the only implementation provided by Android so far. You may look for a JapaneseImperialCalendar implementation online or create one of your own.

    I hope this information helps.

    Regards,
    Todor
    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