RadSlideView Panning Issue in Android with Frames

1 Answer 51 Views
SlideView
Calin
Top achievements
Rank 1
Calin asked on 27 Mar 2024, 12:01 AM
I noticed that if I use the RadSlideView in a Maui project running on Android the panning gestures do not work when in a frame control. It works fine on a windows machine but does nothing in Android.

Here's  the view that i'm using which i modified from the SDKBrowserMaui:


<?xml version="1.0" encoding="utf-8" ?>
<telerik:RadContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
                        xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                        xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
                        x:Class="SDKBrowserMaui.Examples.SlideViewControl.FeaturesCategory.InteractionModeExample.InteractionMode"
                        Margin="5">
    <Grid>
        <!-- >> slideview-interaction-xaml -->
        <telerik:RadSlideView x:Name="slideView"
                              ItemsSource="{Binding Views}"
                              InteractionMode="Pan">
            <telerik:RadSlideView.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>

                        <Label Grid.Row="0" Text="{Binding Content}" HorizontalTextAlignment="Center" Margin="20"></Label>
                        <Frame Grid.Row="1" Background="LightGray" CornerRadius="15" Margin="15">
                            <!--<Frame.GestureRecognizers>
                                <SwipeGestureRecognizer Direction="Left,Right" Swiped="SwipeGestureRecognizer_OnSwiped"></SwipeGestureRecognizer>
                            </Frame.GestureRecognizers>-->
                            <telerik:RadButton Text="Button in Frame"
                                               TextColor="#007ACC"
                                               VerticalOptions="Center"/>
                        </Frame>
                        <telerik:RadButton Grid.Row="2" Text="Button in Grid"
                                       TextColor="#007ACC"
                                       VerticalOptions="Center"/>
                    </Grid>
                </DataTemplate>
            </telerik:RadSlideView.ItemTemplate>
        </telerik:RadSlideView>
        <!-- << slideview-interaction-xaml -->
    </Grid>
</telerik:RadContentView>

I realize I can get it to work by adding a GestureRecognizer in the frame but it took a while to figure out what was going wrong.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 29 Mar 2024, 09:14 AM

Hello Calin,

It seems you stumbled upon the following issue with SlideView on Android: 

SlideView: [Android] Cannot swipe along with the content when navigating to another item

The content handles the pan gesture and SlideView cannot initiate its navigation - this happens with different content, not only with frames and as you noticed it's specific Android issue.

I've raised the priority of the issue per your report, and hopefully we'll manage to look into it soon. Please follow the feedback item to get notified on status changed.

For now, indeed, the workaround is to manually handle the Frame swipe gesture. 

I am sorry for any inconvenience caused.

Regards,
Yana
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Alex
Top achievements
Rank 1
commented on 30 Apr 2024, 01:34 PM | edited

Hi Yana.

I have been using this control via the demo Nuget. We are investigating if your controls will work better for us then others and I have come across this issue also, this is a key part of our application and to see this was reported at the start of the year with no fix or "valid" workaround is not very inspiring. Is this likely to be fixed?

If so then when, this is a show stopper for us.

We have used Syncfusion before and they tend to pick up tickets fast and release fixes weekly. Is this similar with Telerik?

Yana
Telerik team
commented on 30 Apr 2024, 06:20 PM

I am sorry to hear this issue is a show-stopper for using our .NET MAUI SlideView control. I am afraid there isn't a feasible workaround I can suggest rather than using the navigation buttons to switch the slides.

We are prioritizing the issues we're going to work on first based on various factors, such as complexity, demand and available resources. When an issue is scheduled, we're updating its status in the feedback portal to "Planned". Indeed, the concrete bug report hasn't been scheduled yet due to other tasks with higher priority.

Other than that, starting with this year, we updated our release cadence - now we're going to ship four major releases throughout the year as well as a few minor releases in between to ensure we grant you a swifter access to the latest features and fixes. You can read more about this here: Telerik UI for .NET MAUI Roadmap.

I remain at your disposal if you have any additional questions on this.

Tags
SlideView
Asked by
Calin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or