There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Html.EditorFor doesn't consider RequiredAttribute inherited classes for client side validation
I want to localize the error message for the Required attribute and store it in the database. For this purpose I created a custom class LocalizedDisplayNameAttribute the inherits DisplayNameAttribute and overrides the DisplayName property. Everything is ok server side where the Model.IsValid returns what it should and the Html.ValidationSummary correctly displays the localized text from the class LocalizedDisplayNameAttribute, however the method Html.EditorFor doesn't generate the needed items for client side validation.