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

Editor bound to Model in Core and MVC does not render data attributes #4729

Closed
Juveniel opened this issue Dec 24, 2018 · 2 comments
Closed

Comments

@Juveniel
Copy link
Contributor

Juveniel commented Dec 24, 2018

Bug report

When a model property is decorated with data annotation attributes, the Editor HtmlHelper does not properly render the data-val and data-val-required attributes on the <textarea> element.

Reproduction of the problem

TelerikAspNetCoreAppEditor.zip

Current behavior

Data attributes are not rendered on the <textarea> element.

Expected/desired behavior

Data attributes should be successfully rendered on the Editor's <textarea>element.

Environment

  • Kendo UI version: 2018.3.1017
  • Browser: [all]
@jack0fshad0ws
Copy link

jack0fshad0ws commented Nov 11, 2019

Same applies to TextBoxFor e.g. @(Html.Kendo().TextBoxFor(m => m.Customer.FirstName) no data attributes like required are rendered. v.2019.2.619.

@nenchef nenchef added the FP: Planned Sync status with associated Feedback Item label Nov 27, 2019
@kendo-bot kendo-bot added FP: In Development Sync status with associated Feedback Item and removed FP: Planned Sync status with associated Feedback Item labels Nov 27, 2019
@veselints veselints changed the title Editor bound to Model in ASP.NET Core does not render data attributes Editor bound to Model in Core and MVC does not render data attributes Nov 27, 2019
@mparvanov
Copy link
Contributor

mparvanov commented Dec 10, 2019

In MVC5 and MVC Core Wrappers the data-val-required attribute is rendered after the fix.

@kendo-bot kendo-bot added FP: Completed Sync status with associated Feedback Item and removed FP: In Development Sync status with associated Feedback Item labels Dec 19, 2019
@Dimitar-Goshev Dimitar-Goshev added this to the 2020.R1 milestone Feb 14, 2020
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

7 participants