Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS error thrown when using a RadioButton in Grid's custom popup template #7214

Closed
IvanDanchev opened this issue Feb 17, 2023 · 0 comments
Closed

Comments

@IvanDanchev
Copy link
Contributor

Bug report

Reproduction of the problem

  1. Set up a Grid for popup editing:
.ToolBar(toolbar => toolbar.Create())
.Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("RadioButtonTemplate"))

Add a RadioButton in the RadioButtonTemplate.cshtml template:

@model GridExample.Models.OrderViewModel

@(Html.Kendo().RadioButton().Name("engine1").Checked(true).HtmlAttributes(new { @name = "engine" }).Label("1.4 Petrol, 92kW"))
@(Html.Kendo().RadioButton().Name("engine2").HtmlAttributes(new { @name = "engine" }).Label("1.8 Petrol, 118kW"))
  1. Click the "Add new record" button in the Grid's toolbar.

Current behavior

A js exception is thrown and the popup does not open:

Chrome:
Uncaught TypeError: Cannot read properties of undefined (reading 'toString') kendo.all.js:313050

Firefox:
Uncaught TypeError: this.bindings.checked.get() is undefined kendo.all.min.js:10:102181

The issue is reproducible with a RadioButton or a RadioButtonFor helper.

Expected/desired behavior

No exception is thrown and the custom popup displays the RadioButton.

Environment

  • Kendo UI version: 2023.1.117
  • jQuery version: x.y
  • Browser: [all]
@aleksandarevangelatov aleksandarevangelatov self-assigned this Jun 7, 2023
@github-actions github-actions bot added FP: Planned Sync status with associated Feedback Item FP: Completed Sync status with associated Feedback Item and removed FP: Unplanned Sync status with associated Feedback Item FP: Planned Sync status with associated Feedback Item labels Jun 30, 2023
@Dimitar-Goshev Dimitar-Goshev changed the title A js exception is thrown when using a RadioButton in a custom popup template of a Grid JS error thrown when using a RadioButton in a custom popup template of a Grid Jun 30, 2023
@Dimitar-Goshev Dimitar-Goshev changed the title JS error thrown when using a RadioButton in a custom popup template of a Grid JS error thrown when using a RadioButton in Grid's custom popup template Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants