Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Support [DisplayFormat(DataFormatString="{format})] #844

Closed
dougbu opened this issue Jul 22, 2014 · 2 comments
Closed

Support [DisplayFormat(DataFormatString="{format})] #844

dougbu opened this issue Jul 22, 2014 · 2 comments

Comments

@dougbu
Copy link
Member

dougbu commented Jul 22, 2014

  • brings over ModelMetadata.HasNonDefaultEditFormat property from MVC 5.2
  • value is derived from EditFormatString and its calculated source
  • property should also be used in @Html.Editor() helpers
    • disables Html5DateRenderingMode.Rfc3339 for an affected property (custom format wins over broad configuration)
    • closes a TODO
@dougbu
Copy link
Member Author

dougbu commented Aug 10, 2014

We also have not fleshed out the DisplayFormatString and EditFormatString implementations. Those properties exist but are not determined based on attributes (in this case [DisplayFormat]). This gap is similar to #933 and #963 but closely tied to this bug.

Since HasNonDefaultEditFormat is useless without setting EditFormatString correctly, I'll do these three properties together.

@dougbu dougbu changed the title Add HasNonDefaultEditFormat to ModelMetadata Add [HiddenInput] and support [DisplayFormat(DataFormatString="{format})] Aug 18, 2014
@dougbu dougbu changed the title Add [HiddenInput] and support [DisplayFormat(DataFormatString="{format})] Support [DisplayFormat(DataFormatString="{format})] Aug 18, 2014
@dougbu
Copy link
Member Author

dougbu commented Aug 20, 2014

Closed with commits 4351ddd through 041d350

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant