Skip to content

Validation attributes not rendered on Kendo editors if ViewData contains model property name #5641

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

Closed
Juveniel opened this issue Mar 3, 2020 · 2 comments
Assignees
Milestone

Comments

@Juveniel
Copy link
Contributor

Juveniel commented Mar 3, 2020

Bug report

Validation attributes are not rendered on Kendo editors if ViewData contains same key as the model.

Reproduction of the problem

@{
  ViewData["Title"] = "Home Page"; 
}

@using (Html.BeginForm())
{
  @Html.Kendo().TextBoxFor(model => model.Title)
}

<script>
  $(function () {
    $("form").kendoValidator();
  });
</script>

Current behavior

Validation attributes are not rendered.

Expected/desired behavior

Validation attributes should be rendered on the input element.

Environment

  • Kendo UI version: 2020.1.219
  • Browser: [all]
@kendo-bot kendo-bot added FP: Planned Sync status with associated Feedback Item FP: Unplanned Sync status with associated Feedback Item labels Mar 3, 2020
@zdravkov zdravkov self-assigned this Mar 5, 2020
@nenchef nenchef removed the FP: Unplanned Sync status with associated Feedback Item label Mar 20, 2020
@gh5692
Copy link

gh5692 commented Sep 2, 2021

I just ran into this in version 2021.2.511, when a grid field would not validate. Mentioning it on the demo page and in the documentation (as this issue is over a year old) might save people a lot of time and frustration.

@zdravkov zdravkov removed their assignment Sep 3, 2021
@alestoya
Copy link

Reported in 1608512

@aleksandarevangelatov aleksandarevangelatov self-assigned this Nov 9, 2023
@github-actions github-actions bot added FP: Completed Sync status with associated Feedback Item and removed FP: Planned Sync status with associated Feedback Item labels Dec 8, 2023
@VicTachev VicTachev added this to the 2024 Q1 milestone Jan 18, 2024
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

8 participants