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


    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)


  2. Georgi Krustev
    Georgi Krustev avatar
    3747 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.

    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!
Back to Top