Not able to get the selected index of the SfRotator

Hi,

I am trying to get the selected index of the SfRotator using sfrotator.SelectedIndex property.
But it is always returning 0, no matter whichever item i choose.

Please help me out on this.

5 Replies

PA Paul Anderson S Syncfusion Team August 27, 2018 04:57 AM UTC

Hi Deepa, 
 
Greetings from Syncfusion. 
 
We have created a simple sample with SfRotator in Xamarin.iOS platform and we are not able to replicate the reported issue at or end. Please have the sample from the below link. 
 
 
Please let us know with additional details if you still face the issue. 
 
Regards, 
Paul Anderson 



PR Padmini Ramamurthy Syncfusion Team August 27, 2018 08:52 AM UTC

From: Deepa Mhatre
Sent: Monday, August 27, 2018 2:43 AM
To: Syncfusion Support <[email protected]>
Subject: RE: Syncfusion support community forum 139462, Not able to get the selected index of the SfRotator, has been updated. 

Hi,  
 
Thanks for the reply.  
In my application, I have used rotator. And I have a button to take photo. Initially I am binding a default image view in the rotator. Once the user clicks on the add photo button and captures a photo from the camera and assigns it to the rotator item. But the image is not displaying in the rotator.  
I have used the function imageRotator.ReloadInputViews() function. 
 
Please help me out on this. 
 
Thanks 
 
Deepa Mhatre 



PA Paul Anderson S Syncfusion Team August 27, 2018 09:37 AM UTC

Hi Deepa, 
 
Thanks for the update. 
 
Since we are using UIImageView to load an image in the SfRotatorItem we have to reload the ImageView by assigning the new image to the ImageView.Image API and not the rotator. We have modified the sample and it is available in the below link. 
 
 
Please have a look at the sample and let us know if your requirement differs from the above provided sample. 
 
Regards, 
Paul Anderson 



PR Padmini Ramamurthy Syncfusion Team August 28, 2018 05:40 AM UTC

From: Deepa Mhatre 
Sent: Monday, August 27, 2018 9:20 AM
To: Syncfusion Support <[email protected]>
Subject: RE: Syncfusion support community forum 139462, Not able to get the selected index of the SfRotator, has been updated. 

Hi, 
 
Thanks for the response. This worked great. 
 
Thanks 
 
Deepa Mhatre 



PA Paul Anderson S Syncfusion Team August 28, 2018 05:43 AM UTC

Hi Deepa, 
  
Thanks for the update. We are happy to assist you. 
  
Regards, 
Paul Anderson 


Loader.
Up arrow icon