Last Updated: 09 Sep 2020 11:28 by ADMIN
Release 2020.R3
Created on: 05 Aug 2020 17:13
Category: Rating
Type: Bug Report
How not to round value on the kendoRating label?

The decimal place is only considered up to the 5th decimal, such as 2.5 for example.

Therefore, if the Rating receives a value such as 2.1, 2.2, 2.3, 2.4, 2.5, it normally presents, as in the image below.

After the decimal 5, the decimal place is disregarded, rounding up to the next whole number.

So, if the Rating receives a value such as 2.6, 2.7, 2.8, 2.9, it presents incorrectly, as in the image below.

The problem is not in the filling of the stars, since Kendo makes it clear in its documentation that even the decimal 5 is considered as a half star, from that it would really be an entire star.

The problem is related to the label, which in this last example should have “2.6 / 5” instead of “3/5”.

In the link below to see a simulation.

Posted on: 06 Aug 2020 14:52
Great thanks.
Posted on: 06 Aug 2020 12:12

Hello Márcio,

I can confirm that the observed behavior is related to a bug in the Kendo Rating label functionality. Thus, I have converted this thread to a bug, that is visible in the Kendo Feedback Portal.

Here is the related GitHub item:

I would suggest to subscribe to the above issue so that you get notified as soon as the status of the item changes.

Also, as a small token of gratitude for reporting this issue, I have increased your Telerik Points accordingly.

Progress Telerik