This question is locked. New answers and comments are not allowed.
When binding a column to an enum type like this:
the data shows up OK (the display name is loaded from the resource) but in the filter dialog for the column the possible filters are not localized (you get to choose between Planned, Pending and Payed instead of the localized values in the resource).
Is there a workaround for that?
PS: Also, sorting the column sorts by the internal value of the elements (1, 2, 3). I'd expect it to sort by the display text in alphabetical order.
public enum Status_E{ [Display(Name = "Planned", ResourceType = typeof(LocalizationResources))] Planned = 1, [Display(Name = "Pending", ResourceType = typeof(LocalizationResources))] Pending, [Display(Name = "Payed", ResourceType = typeof(LocalizationResources))] Payed}//...columns.Bound(typeof(Status_E), "Status")//...the data shows up OK (the display name is loaded from the resource) but in the filter dialog for the column the possible filters are not localized (you get to choose between Planned, Pending and Payed instead of the localized values in the resource).
Is there a workaround for that?
PS: Also, sorting the column sorts by the internal value of the elements (1, 2, 3). I'd expect it to sort by the display text in alphabetical order.