This repository was archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[DataType]
and [DisplayFormat]
ignored when choosing @Html.Display()
and @Html.Editor()
templates
#933
Comments
This was referenced Aug 10, 2014
Closed
ModelMetadata.DataTypeName
based on attributes[DataType]
and [DisplayFormat]
ignored when choosing @Html.Display()
and @Html.Editor()
templates
Need to set Between this bug and #963, only a few of the default templates get chosen automatically -- based just on the model's |
dougbu
pushed a commit
that referenced
this issue
Oct 1, 2014
- helps MVC helpers like `@Html.EditorFor()` select the correct template - #933 nit: - add XML doc for `DataTypeName` in base `ModelMetadata` - an -> a in an adjacent XML comment in `CachedDataAnnotationsModelMetadata`
dougbu
added a commit
that referenced
this issue
Oct 1, 2014
- helps MVC helpers like `@Html.EditorFor()` select the correct template - #933 nit: add XML doc for `DataTypeName` in base `ModelMetadata`
dougbu
added a commit
that referenced
this issue
Oct 3, 2014
- helps MVC helpers like `@Html.EditorFor()` select the correct template - #933 nit: add XML doc for `DataTypeName` in base `ModelMetadata`
Fixed in commit a5600a7 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is a functional gap compared with MVC 5.2. For example it leads to incorrect templates for
@Html.Display()
and@Html.Editor()
.The current implementation of
CachedModelMetadata<TPrototypeCache>
does not override theDataTypeName
property as it should. Value should be based on[DataType]
or (for the special case of the"html"
choice)[DisplayFormat]
attributes in the model.The text was updated successfully, but these errors were encountered: