Limit the days showed on Month view

5 posts, 1 answers
  1. Adam
    Adam avatar
    24 posts
    Member since:
    Aug 2017

    Posted 10 Aug Link to this post

    Hello!

    I want to limit the days displayed on each month of the month view of the calendar, currently it is showing 6 rows with the last row showing the days from the next month. How can I limit the rows displayed to 5? Is that possible?

  2. Adam
    Adam avatar
    24 posts
    Member since:
    Aug 2017

    Posted 11 Aug Link to this post

    Any comments on this?
  3. Adam
    Adam avatar
    24 posts
    Member since:
    Aug 2017

    Posted 11 Aug Link to this post

    Any comments on this?
  4. Answer
    Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    503 posts

    Posted 14 Aug Link to this post

    Hello Adam,

    The requirement you have is not supported in the Xamarin.Forms RadCalendar control. The feature is only available for the iOS platform and you can achieve it by creating a custom RadCalendar renderer and set the native control's ViewMode to TKCalendarViewMode.Flow as explained in the Calendar View Modes article. Here is an actual implementation: 

    [assembly: Xamarin.Forms.ExportRenderer(typeof(Telerik.XamarinForms.Input.RadCalendar), typeof(iOScalendarRenderer))]
    namespace CalendarAppointmentShape.iOS
    {
        class iOScalendarRenderer : CalendarRenderer
        {
            protected override void OnElementChanged(ElementChangedEventArgs<RadCalendar> e)
            {
                base.OnElementChanged(e);
                this.Control.ViewMode = TelerikUI.TKCalendarViewMode.Flow;
            }
        }
    }

    As the requirement seems viable for all platforms, I have created a feature request on your behalf. You can track it on the following link from our Ideas & Feedback portal - Calendar: Introduce Flow ViewMode. I have also added some points to your account for bringing up the suggestion.

    Have a great week.

    Regards,
    Stefan Nenchev
    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
  5. Adam
    Adam avatar
    24 posts
    Member since:
    Aug 2017

    Posted 14 Aug Link to this post

    Thanks Stefan!
Back to Top