Completed
Last Updated: 02 Jun 2020 11:51 by ADMIN
Release 2020.R2.SP.next
Created by: Don Leduc
Comments: 0
Category: Rating
Type: Bug Report
1

Bug report

When the model value is null, the first item of the Rating is selected.

Reproduction of the problem

Return a new model instance to the view without setting a value for the rating:

@(Html.Kendo().Rating()
  .Name("test")
  .Precision("half")
  .Value(Model.Rating)
)

@(Html.Kendo().RatingFor(m => m.Rating)
  .Precision("half")
)

Current behavior

The first item of the Rating is selected and respectively its value.

Expected/desired behavior

When the model value is null, no item should be selected.

Environment

  • Kendo UI version: 2020.2.513*
  • Browser: [all]