-
Notifications
You must be signed in to change notification settings - Fork 2.1k
GetEnumSelectList
does not appear to respect Order property of DisplayAttribute
#4297
Comments
Might not be a bad idea though I'm not convinced Note |
In cases where an So it's kind of a small thing, but if we're committed to the |
Yeah this is all fine and I'd be ok one day implementing this, but it's just not a priority for shipping right now. |
@Eilon @dougbu I was planning to submit a PR for this just now but that is a breaking change... would it be considered for 2.0.0 to change that to an |
@tuespetre what is the use case for ordering both properties? |
@dougbu good question. I guess |
@dougbu can you review the PR at https://github.com/aspnet/Mvc/pull/6012/files ? |
I would expect
GetEnumSelectList<TEnum>
to respect theOrder
property of anyDisplayAttribute
defined on the enum's members. For groups, I would expect theOrder
property to apply within the scope of a group. Using rc1 this does not appear to be the case.Perhaps this could be done when building up an instance of
DataAnnonationsMetadataProvider.
The text was updated successfully, but these errors were encountered: