This repository has been 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
Consider using DisplayAttribute.GroupName
to determine SelectListItem
's Group
#2292
Comments
low priority, I agree. but we pay attention to |
danroth27
added
0 - Backlog
up-for-grabs
Members of our awesome commnity can handle this issue
labels
Apr 2, 2015
@danroth27 @henkmollema Is this issue closed? |
@heathyates nope, my commit is just some try-out which got pushed accidentally. |
Looks good to me. |
I'll send in the pull request so we can continue the discussion from a code perspective then :) |
Beta8 is closed. For RC this will be fine. |
dougbu
removed
the
up-for-grabs
Members of our awesome commnity can handle this issue
label
Sep 29, 2015
Thanks @stebet ! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
IHtmlHelper.GetEnumSelectList
picks upDisplayAttribute.Name
to determine an enum field's display name. It seems appropriate for it also pick upDispayAttribute.GroupName
to group these enum values.That said, this might have pretty narrow scope - there aren't too many scenarios I can think of where the values used to produce
SelectListItem
are annotated to start with.The text was updated successfully, but these errors were encountered: