- Home
- Forum
- Xamarin.Forms
- Precision as Exact doesnt display correct
Precision as Exact doesnt display correct
when I use Precision as exact, and if Rating value is 4, I expect that it should fill 4 stars but it fills 3 stars and 4th one is empty but blue. is there something I understand wrong or it is a bug?
<rating:SfRating x:Name="rating" ReadOnly="True" Style="{StaticResource ratingSyle}" BackgroundColor="White"
Value="{Binding Rating}" Precision="Exact">
</rating:SfRating>
SIGN IN To post a reply.
3 Replies
EM
Emil
March 11, 2018 01:11 PM UTC
Problem here looks like with sending integer
Rating = (double)EntityRating.Rating / EntityRating.TotalUsers
my actual binding is double as shown below
private double rating;
public double Rating
{
get { return rating; }
set
{
rating = value;
RaisePropertyChanged("Rating");
}
}
if I calculate as Rating and totalusers are both integer. So result is integer, although it shows 4 , sfRating displays 3
Rating = EntityRating.Rating / EntityRating.TotalUsers;
using below as double also doesnt work. Rating value becomes 4.7 but sfRating displays 4 stars instead of 4 star and 5th one 70% filled
MS
Mugundhan Saravanan
Syncfusion Team
March 12, 2018 01:00 PM UTC
Hi Emil,
Thanks for using Syncfusion product.
We are Analyzing the Rating value which is used in the binding. we will provide further information on March14,2018.
Regards,
Mugundhan S.
Thanks for using Syncfusion product.
We are Analyzing the Rating value which is used in the binding. we will provide further information on March14,2018.
Regards,
Mugundhan S.
MS
Mugundhan Saravanan
Syncfusion Team
March 14, 2018 12:47 PM UTC
Hi Emil,
Thanks for your patience.
We were unable to reproduce the reported issue. we can create a sample as same which you applied for binding .using double for conversion can be changed the value of rating as well as Sfrating control.
please find the sample from the following link.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/Rating_Precision-548257695
Thanks for your patience.
We were unable to reproduce the reported issue. we can create a sample as same which you applied for binding .using double for conversion can be changed the value of rating as well as Sfrating control.
please find the sample from the following link.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/Rating_Precision-548257695
So, Could you please provide the below mentioned details,
1)Modified sample which replicates the reported issue.
2)Which Android version reported issue gets occur and whether it is reproduced in simulator also.
It will help us to provide appropriate solution on this.
Regards,
Mugundhan S.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
EM Emil
- Mar 11, 2018 12:37 PM UTC
- Mar 14, 2018 12:47 PM UTC