We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

iOS - SfRating not responding to taps when placed in SfListView data template

Thread ID:

Created:

Updated:

Platform:

Replies:

130309 May 5,2017 07:18 AM May 9,2017 10:21 AM Xamarin.Forms 3
loading
Tags: SfRating
Graham Pett
Asked On May 5, 2017 07:18 AM

When it is placed in a SfListView data template the SfRating does not respond to taps and requires a long press to set a value on iOS. It works OK on Android and UWP. In the following code, the top rating control can be tapped to set the value, but the rating controls in the list require a long press:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:RatingTest"
             x:Class="RatingTest.MainPage"
             xmlns:rating="clr-namespace:Syncfusion.SfRating.XForms;assembly=Syncfusion.SfRating.XForms"
             xmlns:syncfusion="clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms">
    <Grid>
        <rating:SfRating x:Name="rating"
                         HeightRequest="50"
                         WidthRequest="270"
                         VerticalOptions="Center"
                         HorizontalOptions="Center" />
        <syncfusion:SfListView x:Name="listView"
                               ItemSize="75"
                               Grid.Row="1"
                               SelectionMode="None"
                               SelectionGesture="Hold">
            <syncfusion:SfListView.ItemTemplate>
                <DataTemplate>
                    <rating:SfRating x:Name="rating"
                                     HeightRequest="50"
                                     WidthRequest="270"
                                     Value="{Binding}"
                                     VerticalOptions="Center"
                                     HorizontalOptions="Center" />
                </DataTemplate>
            </syncfusion:SfListView.ItemTemplate>
        </syncfusion:SfListView>
    </Grid>
</ContentPage>
List view items source is set as: listView.ItemsSource = Enumerable.Range(1, 3).ToList();

Also, if the control is placed in a Xamarin Forms NavigationPage detail page then swiping to change the value doesn't work (again only on iOS)





Dinesh Babu Yadav [Syncfusion]
Replied On May 9, 2017 08:51 AM

Hi Graham, 
 
Thank you for using Syncfusion Products. 
 
Query 1: 
We are able to reproduce the reported issue “SfRating control does not respond to tap gesture when loaded in SfListView in iOS platform” at our end and the issue arises in the SfRating control. So, we have reported the issue to the concern team and the fix for the reported issue will be included in our upcoming 2017 Volume 2 SP 1 release which is scheduled to be rolled out by end of this month. 
 
Query 2: 
As you have mentioned that you have loaded the SfListView control in Xamarin Forms NavigationPage’s detail page. Since, there is no detail page in NavigationPage, so we suspect that you may have loaded the SfListView control in MasterDetailPage’s detail page. If yes, then we are able to reproduce the reported issue “SfRating control value does not change when swiping is performed in iOS platform” at our end and the issue arises in the SfRating control. So, we have reported the issue to the concern team and the fix for the reported issue will be included in our upcoming 2017 Volume 2 SP 1 release which is scheduled to be rolled out by end of this month. We will let you know once the release has been rolled out and we will appreciate your patience until then. 
 
Regards, 
Dinesh Babu Yadav 
 


Graham Pett
Replied On May 9, 2017 10:13 AM

Yes, sorry - I meant MasterDetailPage not NavigationPage.

Thanks

Graham

Dinesh Babu Yadav [Syncfusion]
Replied On May 9, 2017 10:21 AM

Hi Graham, 
 
Thanks for the update. 
 
As we are able to reproduce the reported issue “SfRating control value does not change when swiping is performed in iOS platform” in the MasterDetailPage and it has been reported to the concern team and fix for the issue will be included in our upcoming 2017 Volume 2 SP 1 release. We will let you know once the release has been rolled out and we will appreciate your patience until then. 
 
Regards, 
Dinesh Babu Yadav 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;