Wrappers don't output Data Annotations validation attributes for nested properties

2 posts, 0 answers
  1. Yann
    Yann avatar
    9 posts
    Member since:
    Jun 2010

    Posted 27 Jul 2012 Link to this post

    Hi,

    I have noticed the following bug.
    If you use an input wrapper such as NumericTextBoxFor(), DropdownlistFor() ... , the unobstrusive validation attributes are not rendered when passing in a nested property.

    For example, this will work as expected and output the validation attributes ( such as data-required...)
    NumericTextBoxFor(model => model.FirstName)

    However, the following will not render the validation attributes:
    NumericTextBoxFor(model => model.Person.FirstName)

    Regards,

    Yann
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 27 Jul 2012 Link to this post

    Hello Yann,

     
    This is a known issue. Please download the latest internal build, which provides a fix for this issue.

    Regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top