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

Segmented control in image-mode, does not respond when clicked on iOS

Hi,


I found an issue with the segmented control.


The Segmented control does not respond when clicked, when displaying as Image

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


Attachment: SyncFusionDemo1_8af932d3.zip

1 Reply

DR Dhanasekar R Syncfusion Team January 28, 2019 07:30 AM

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 


Loader.
Live Chat Icon For mobile
Up arrow icon