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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfRotator loading images from the internet

Thread ID:

Created:

Updated:

Platform:

Replies:

124084 May 14,2016 06:05 PM UTC May 27,2016 12:42 PM UTC Xamarin.Forms 12
loading
Tags: SfRotator
Salem Korayem
Asked On May 14, 2016 06:05 PM UTC

I was surprised to discover that SfRotator doesn't accept SfRotatorItem Image source from the internet. I thought its implementation is similar to XF Image which accepts both local or online images.

Any idea how can I achieve that?

Paul Anderson S [Syncfusion]
Replied On May 16, 2016 04:33 AM UTC

Hi Salem,

Thank you for contacting Syncfusion Support.

Currently, SfRotatorItem's Image API can accept only string values in which you can assign the image names as shown below.

Code example:

SfRotatorItem item =new SfRotatorItem ();
item.ImageName="image.png";

Due to some stability issues, we had postponed the Custom View support for the Rotator control and it will be available in our upcoming 2016 Volume 2 release which is expected to be roll out by the mid of June, 2016. By using this custom View support, you can achieve your requirement of assigning the Images via URL. Please visit our website periodically for updates regarding releases.

Regards,
Paul Anderson

Paul Anderson S [Syncfusion]
Replied On May 16, 2016 04:34 AM UTC

Hi Salem,

Please ignore our previous update.

Currently, SfRotatorItem's Image API can accept only string values in which you can assign the image names as shown below.

Code example:

SfRotatorItem item =new SfRotatorItem ();
item.Image="image.png";

Due to some stability issues, we had postponed the Custom View support for the Rotator control and it will be available in our upcoming 2016 Volume 2 release which is expected to be roll out by the mid of June, 2016. By using this custom View support, you can achieve your requirement of assigning the Images via URL. Please visit our website periodically for updates regarding releases.

Regards,
Paul Anderson 


Salem Korayem
Replied On May 16, 2016 10:56 AM UTC

Ok I am glad to hear that. Thanks for the info.

Vignesh V [Syncfusion]
Replied On May 17, 2016 04:54 AM UTC

Hi Salem,

Thanks for your update.

We request you to visit our website periodically for updates regarding releases.

Regards,
Vignesh V 


uday kumar
Replied On May 19, 2016 04:19 PM UTC

hi , Can u explain how can i use sfRotator in Xamarin forms?? i am unable to bind the data to the rotator?  i am unable to see the dots too?

uday kumar
Replied On May 19, 2016 07:10 PM UTC

thank you!! I got the Idea!! Its working Fine. :) Plz Anybody suggest me how can i display the rating that i am giving on to a label?? i am unable to bind the rating value to a label!!.....

Hemalatha Marikumar [Syncfusion]
Replied On May 20, 2016 09:09 AM UTC

Hi Uday kumar,

Thanks for your update.

Query: unable to bind the rating value to a label

You can achieve this by representing the mode of binding label with “TwoWay”. It necessary to inherit INotifyPropertyChanged in your view model as in the following code example,

Code Example:  

 
//Xaml code   
  <Label x:Name="text2"  Text="{Binding Rating, Mode=TwoWay}"/>   
  //view model class with INotifyPropertyChanged   
public event PropertyChangedEventHandler PropertyChanged;   
protected void RaiseProeprtyChanged([CallerMemberName]string propertyName = "")   
{   
   if (this.PropertyChanged != null)   
   this.PropertyChanged(thisnew PropertyChangedEventArgs(propertyName));   
}   


We have created a sample for achieving your requirement to bind rating value to label. Please download that sample from the following link

Link:  http://www.syncfusion.com/downloads/support/forum/124084/ze/RatingBind1240841386136391

Regards,
Hemalatha M.R  
 


uday kumar
Replied On May 23, 2016 06:14 AM UTC

Thank  you so much @Hemalatha Marikumar

uday kumar
Replied On May 23, 2016 04:43 PM UTC

Hi,

i have binded images to the Sf rotator . its working fine. 
here is my code in C#:

  for (int i = 1; i < 6; i++)
            {
                SfRotatorItem sliderItem = new SfRotatorItem();
                sliderItem.Image = "Movie" + i + ".jpg";
                rotator.DataSource.Add(sliderItem);
            }

my code in Xaml:

 <rotator:SfRotator  SelectedIndex="0" EnableAutoPlay="False"  EnableLooping="False" HeightRequest="200" x:Name="rotator" NavigationStripMode="Dots"  NavigationStripPosition="Top" NavigationDirection="Horizontal" NavigationDelay="1000" >


everything is fine but when i tried to scroll on the last image horizontally... i am getting this "Unhandled Exception Java.Lang.NullPointerException: "  error ..

Can anyone suggest how to overcome this??

Hemalatha Marikumar [Syncfusion]
Replied On May 24, 2016 03:51 PM UTC

 Hi  Uday kumar,

We were able to reproduce the issue and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/

Regards,
Hemalatha M.R
 


uday kumar
Replied On May 26, 2016 10:51 AM UTC

Hi ,

when i use sfrating bar in my xamarin forms.. i found that the size of the stars are varying and in android its looking ugly (blurred stars with background color of stars changing when we tap the stars) and also when i want to give a 5 out of 5 rating , it is not taking 5 rating even if i click on the right half of the star (5th star). if i click outside(right to the 5th star) of the 5th star it is giving 5 rating In IOS. Please suggest me how to overcome this?

Pavendhan Kumar [Syncfusion]
Replied On May 27, 2016 12:42 PM UTC

Hi Uday Kumar, 
Query: Star gets selected only when clicking the ouside of rating control. 
We were able to reproduce the issue and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/
 
Regards, 
Pavendhan K 


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

or the page will be automatically redirected to 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

;