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. Image for the cookie policy date
close icon

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

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)





3 Replies

DB Dinesh Babu Yadav Syncfusion Team May 9, 2017 12:51 PM UTC

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 
 



GP Graham Pett May 9, 2017 02:13 PM UTC

Yes, sorry - I meant MasterDetailPage not NavigationPage.

Thanks

Graham


DB Dinesh Babu Yadav Syncfusion Team May 9, 2017 02:21 PM UTC

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 


Loader.
Live Chat Icon For mobile
Up arrow icon