Precision

The Telerik UI Rating allows you to control the precision with which an item is selected.

To implement the precision functionality, configure the Precision property which accepts the following values:

  • (Default) item—Selects the whole item.
  • half—Selects half of the item.

Item Precision

Item precision is the default precision of the Rating. If not configured, the Rating will automatically set the Precision property to "item":

    @(Html.Kendo().Rating()
        .Name("rating")
        .Precision("item")
    )

Half Precision

To configure the half precision, set the Precision property to "half". The half precision enables you to set decimal values. During the rendering phase, the passed value is rounded to display the full item or half of the item based on the value.

  • A value which is less than or equal to .5 displays half an item.
  • A value which is greater than .5 displays a full item.
    @(Html.Kendo().Rating()
        .Name("rating1")
        .Min(1)
        .Max(6)
        .Value(3.2)
        .Precision("half")
    )
    <br>
    @(Html.Kendo().Rating()
        .Name("rating2")
        .Min(1)
        .Max(6)
        .Value(3.5)
        .Precision("half")
    )
    <br>
    @(Html.Kendo().Rating()
        .Name("rating3")
        .Min(1)
        .Max(6)
        .Value(3.7)
        .Precision("half")
    )

See Also

In this article
Not finding the help you need? Improve this article