Unplanned
Last Updated: 17 Jul 2019 10:01 by ADMIN
movilidad
Created on: 28 Jun 2019 07:56
Category: Calendar & Scheduling
Type: Bug Report
1
Calendar: [Android] When hosted inside ScrollView, swipe gestures does not work
when the RadCalendar is hosted inside a ScrollView, users cannot navigate to other month using the swipe gesture
1 comment
ADMIN
Didi
Posted on: 17 Jul 2019 10:01
Hello,

A scenario where the RadCalendar is used within a ScrollView is not that common and such gesture conflicts might be observed as we have different native implementations of the RadCalendar for the different platforms.

As a workaround, the Android Calendar control supports horizontal scrolling.This could be achieved through a custom renderer. Mainly, you need to apply the following changes to the native RadCalendar control in Android:

[assembly: ExportRenderer(typeof(RadCalendar), typeof(CustomCalendarRenderer))]
  
namespace CalendarExample.Droid
{
    public class CustomCalendarRenderer : CalendarRenderer
    {
        public CustomCalendarRenderer(Context context) : base(context)
        {
  
        }
        protected override void OnElementChanged(ElementChangedEventArgs<RadCalendar> e)
        {
            base.OnElementChanged(e);
            this.Control.HorizontalScroll = true;
        }
    }
}

Regards,
Didi
Progress Telerik