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

Limit the days showed on Month view

5 Answers 87 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 10 Aug 2017, 05:53 PM
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?

5 Answers, 1 is accepted

Sort by
0
Adam
Top achievements
Rank 1
answered on 11 Aug 2017, 06:55 PM
Any comments on this?
0
Adam
Top achievements
Rank 1
answered on 11 Aug 2017, 06:55 PM
Any comments on this?
0
Accepted
Stefan Nenchev
Telerik team
answered on 14 Aug 2017, 11:05 AM
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 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 . 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
0
Adam
Top achievements
Rank 1
answered on 14 Aug 2017, 03:48 PM
Thanks Stefan!
0
Dev
Top achievements
Rank 1
answered on 18 May 2018, 07:35 PM
I'm using a negative margin to accomplish hiding the last row while I await the Flow ViewMode, which I would also like to see added.
Tags
Calendar & Scheduling
Asked by
Adam
Top achievements
Rank 1
Answers by
Adam
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Dev
Top achievements
Rank 1
Share this question
or