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

Can allow swipe gesture to propagate to child?

3 Answers 265 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 16 May 2018, 03:00 PM

I've got a Calendar in Week view mode nested inside of a SlideView as such:

<telerikPrimitives:RadSlideView>
    <telerikPrimitives:RadSlideView.ItemsSource>
        <x:Array Type="{x:Type ContentView}">
            <ContentView>
                <telerikInput:RadCalendar />
            </ContentView>
            <!-- other views -->
        </x:Array>
    </telerikPrimitives:RadSlideView.ItemsSource>
</telerikPrimitives:RadSlideView>

 

Is there a way to allow the (horizontal) swipe gesture to propagate to the Calendar when it occurs on the Calendar? As it stands now, no matter where the user swipes the SlideView always handles it, and thus the user cannot swipe left/right to scroll through the Calendar, unless the Calendar is in the view that is in the first/last position inside of the SlideView.

3 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 21 May 2018, 11:37 AM
Hi,

Thank you for the providing XAML, that is used in the project.

Horizontal swipe gesture is possible in SlideView control when the Calendar occurs.
Swiping left/right and right/left to scroll through the Calendar can be viewed in the provided video example.
I prepared for you a sample example how SlideView and Calendar can be used. For the project I used the latest version of Telerik UI for Xamarin.Forms. What is the version of the controls that you are using? 

I am staying in touch for any further questions I could be of help with.

Regards,
Didi
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
Dev
Top achievements
Rank 1
answered on 24 May 2018, 01:57 PM

Your sample is for a calendar in Month view mode, whereas I need it to be in Week mode. I've modified your sample to more accurately reflect the situation.

 

And I am working with the latest version of the controls available as of the time that this was written: 2018.2.516.0

0
Didi
Telerik team
answered on 28 May 2018, 02:31 PM
Hi,

If you need the Calendar to handle the swipe event, the SlideView control has to be customized. You could disable the swiping by setting the IsSwipingEnabled property to false. In this case you can change the view only with the slide buttons. I have attached the project with all changes that need to be done, please download it and give it a try.

On a side note, I would like to ask you not to upload .zip files in the forums. If you need to send us a project for review, please open a support ticket and attach it there.

Regards,
Didi
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
Tags
SlideView
Asked by
Dev
Top achievements
Rank 1
Answers by
Didi
Telerik team
Dev
Top achievements
Rank 1
Share this question
or