Scrolling whilst touching SlideView within MAUI Native ScrollView not working

1 Answer 290 Views
SlideView
Steven
Top achievements
Rank 1
Iron
Steven asked on 06 Nov 2023, 04:54 PM | edited on 06 Nov 2023, 04:54 PM

I have a SlideView within a native MAUI ScrollView.  Unfortunately the ScrollView does not scroll when the touch event starts on the SlideView.  This worked in Xamarin.

I have managed to get SwipeGestureRecognizers for Up and Down working - but since I do not know how far has been swiped, I cannot convert this to a scroll action.

Are there any suggestions on how to fix the scrolling.

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 09 Nov 2023, 10:44 AM

Hello Steven,

I have sent a reply to the support ticket you have opened, but I am pasting my reply here for visibility:

In general the Telerik Xamarin SlideView and the Telerik .NET MAUI SlideView are different controls with different implementation. I have tested the behavior and reproduced it on mobile. I have logged it on your behalf here: https://feedback.telerik.com/maui/1630539-slideview-ios-android-navigating-to-another-item-does-not-work-as-expected-when-in-scrollview  and updated your Telerik points for this report. 

Solution:

I can suggest you use the buttons if you want to keep the ScrollView and disable the pan gesture by setting the InteractionMode to None. 

<telerik:RadSlideView x:Name="slideView"
                ItemsSource="{Binding Views}"
                InteractionMode="None"
                NavigationButtonsVisibility="Visible"
                Orientation="Horizontal">
    <telerik:RadSlideView.ItemTemplate>
        <DataTemplate>
            <Label Text="{Binding Content}"
            TextColor="#007ACC"
            HorizontalTextAlignment="Center"
            VerticalOptions="CenterAndExpand"/>
        </DataTemplate>
    </telerik:RadSlideView.ItemTemplate>
</telerik:RadSlideView>

Regards,
Didi
Progress Telerik

A brand new .NET MAUI course was just added to the Virtual Classroom. The training course is developed to help you get started with the Telerik UI for .NET MAUI components and features. It aims to put you in the shoes of an engineer who adds new features to an existing application. You can check it out at https://learn.telerik.com
Aram
Top achievements
Rank 1
commented on 11 Apr 2024, 11:20 AM

Hello,

If there is MAUI ScrollView inside SlideView  then swipe does not work in the are of scroll view, this is known issue? 

 

thanks in advance

 

Didi
Telerik team
commented on 12 Apr 2024, 06:17 AM

Hi,

I have added a comment in the public item that the behavior also happens when the ScrollView is added inside the Template of the SlideView.

Tags
SlideView
Asked by
Steven
Top achievements
Rank 1
Iron
Answers by
Didi
Telerik team
Share this question
or