This is a migrated thread and some comments may be shown as answers.

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

1 Answer 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yann
Top achievements
Rank 1
Yann asked on 27 Jul 2012, 05:15 AM
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

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 27 Jul 2012, 07:51 AM
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!
Tags
General Discussions
Asked by
Yann
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or