Completed
Last Updated: 06 Jun 2022 10:09 by ADMIN
Release 2022.R2.SP.next
Vinny
Created on: 08 Mar 2022 10:55
Category: UI for ASP.NET MVC
Type: Bug Report
0
Setting id through the RadioButton HtmlAttributes breaks the rendering of the component

Bug report

A regression introduced in R1 2022.

Reproduction of the problem

Reproducible with the RadioButton and RadioButtonFor helpers.

@Html.Kendo().RadioButton().Name("HealthA1").Label("Yes").Value(true).HtmlAttributes(new { id = "HealthA1_True" })
@Html.Kendo().RadioButton().Name("HealthA1").Label("No").Value(false).HtmlAttributes(new { id = "HealthA1_False" })

Current behavior

The rendering is broken: no label element is rendered, the Kendo classes are not applied to the input.

Expected/desired behavior

The RadioButton renders properly.

Environment

  • Kendo UI version: 2022.1.301
  • jQuery version: x.y
  • Browser: [all]
0 comments