Unplanned
Last Updated: 21 Jun 2022 12:01 by David
David
Created on: 21 Jun 2022 12:01
Category: RadioButton
Type: Bug Report
0
Incorrect id attribute is generated when the Value() configuration RadioButton HTML Helper contains spaces

Bug report

Incorrect id attribute is generated when the Value() configuration contains spaces. As a result a RadioButton component is not initialized.
This is a regression introduced with v2022.1.301

Reproduction of the problem

The following RadioButton definition:

@(Html.Kendo().RadioButton().Name("radioBtn1").Value("Value with spaces"))

generates an incorrect id attribute

<input id="radioBtn1_Value with spaces" name="radioBtn1" type="radio">
kendo.syncReady(function() {
    jQuery("#radioBtn1_Value with spaces").kendoRadioButton({
        "checked": false,
        "value": "Value with spaces"
    });
});

Expected/desired behavior

A valid id attribute should be generated.

TicketID:

1569749

Environment

  • Kendo UI version: 2022.2.510
  • Browser: [all]
0 comments