Dropdown localisation

Hello. Is there any way to change the default localisation behavior of an Enum Dropdown to use [Display]’s attribute name parameter, instead of the description? I tried overriding the dropdown base component but the method that seems to handle localisation logic isn’t virtual. I’m talking about this method inside the DropDownBase class:
public object? GetItemOrValueFromProperty(object? item, string property)
If there’s no way to do this currently, could this method be made virtual?

At the moment only the DataGrid is using DisplayAttribute however we accept pull requests for any other component!

UPDATE: Actually there is already such code:

1 Like