We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a booking state enumeration BookingStateType and use this for a DataModel:
BookingStateType
[Display(Name = "Bookingstatus")] [SelectList(typeof(BookingStateType))] public BookingStateType BookingState { get; set; }
Now I would like the booking state to show up as a friendly name in the admin system, so I add Description attributes to it (in Danish) :
public enum BookingStateType { [Description("Forespørgsel")] Requested, [Description("Bekræftet")] Confirmed, [Description("Aflyst")] Cancelled }
Unfortunately the admin section still shows the code names "Requested" etc. in the selected-list.
Please look for Description attributes and their values when showing select lists (and other UI forms).
The text was updated successfully, but these errors were encountered:
I'm sure we can add that. For now you should be able to use IListOptionSource to generate the options with a bit more manual effort.
Sorry, something went wrong.
Fixes #405 Show friendly enumeration item names
f1387d0
Fixed, will be release in v0.10
No branches or pull requests
I have a booking state enumeration
BookingStateType
and use this for a DataModel:Now I would like the booking state to show up as a friendly name in the admin system, so I add Description attributes to it (in Danish) :
Unfortunately the admin section still shows the code names "Requested" etc. in the selected-list.
Please look for Description attributes and their values when showing select lists (and other UI forms).
The text was updated successfully, but these errors were encountered: