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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Segmented control does not respond when clicked

Thread ID:

Created:

Updated:

Platform:

Replies:

142201 Jan 23,2019 08:03 AM UTC Jan 29,2019 10:21 AM UTC Xamarin.Forms 3
loading
Tags: SfSegmentedControl
Kyri Demetriou
Asked On January 23, 2019 08:05 AM UTC

Hi,


I found an issue with the segmented control, which only appears on the iOS only.


The Segmented control does not respond when clicked, when displaying as Image ( again iOS only )

To illustrate this problem, I have attached a sample solution. Please review

Attachment: SyncFusionDemo1_52b96a07.zip

Dhanasekar R [Syncfusion]
Replied On January 28, 2019 12:31 PM UTC

Hi Kyri, 
 
We have validated the reported issue "SelectedIndex is not getting updated when using custom view in SfSegmentedControl" in iOS. We have confirmed this as defect and created the bug report for the same. The fix will be available in our upcoming 2019 Volume 1 release which is expected to be rolled out by the mid of March 2019. 
 
We have prepared the workaround for achieving your requirement by updating the selected index through tap gesture event for the image. Please have the sample with the code snippet in the below link. 
 
  for (int i = 0; i < ThreatOptions.Count;i++)
{
     Image imageView = ThreatOptions[i];
     var tapGestureRecognizer = new TapGestureRecognizer();
     tapGestureRecognizer.Tapped += (sender, e) =>
     {
        ThreatOptionIndex = ThreatOptions.IndexOf(sender as Image);
     };
     imageView.GestureRecognizers.Add(tapGestureRecognizer);
} 
 
 
Regards, 
Dhanasekar 


Kyri Demetriou
Replied On January 28, 2019 03:15 PM UTC

Hi,

Thank you for providing a work-around solution until this bug gets fixed.

- I have tried this in my project, and it works great



Dhanasekar R [Syncfusion]
Replied On January 29, 2019 10:21 AM UTC

Hi Kyri, 
  
We glad to know the provided workaround is working. We will let you know once our volume 1 2019 release has been rolled out

Regards, 
Dhanasekar 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon