Completed
Last Updated: 02 Jun 2020 11:51 by ADMIN
Release 2020.R2.SP.next
Don Leduc
Created on: 20 May 2020 06:29
Category: Rating
Type: Bug Report
1
First item is selected when model value is null

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]
0 comments