This is a migrated thread and some comments may be shown as answers.

FlagEnumEditor display Enum values Display name in the checkbox list

1 Answer 35 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Tayyaba
Top achievements
Rank 1
Tayyaba asked on 06 Oct 2017, 11:27 AM

Hi,

 

I want to show the display name of the Enum in the FlagEnumEditor checkbox list.
Like I have a enum like this:

public enum SceneObjectTypes
    {
[Display(Name = "Cross Sections")]
        CrossSections = 0,

[Display(Name = "Observation Number.")]
        ObservationNumber = 2,

}

 

I want to display those display names in the FlagENumEditor.

Thanks,

Tayyaba

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 11 Oct 2017, 09:02 AM
Hello Tayyaba,

I am sorry to inform you that currently DisplayAttribute is not supported for FlagEnumEditor. There is an item in our feedback portal about adding support for DisplayAttribute and DescriptionAttribute for FlagEnumEditor. You can track its progress and vote for it. 

Don't hesitate to contact us if you have any further questions.

Regards,
Vladimir Stoyanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
PropertyGrid
Asked by
Tayyaba
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or