FlagEnumEditor display Enum values Display name in the checkbox list

2 posts, 0 answers
  1. Tayyaba
    Tayyaba avatar
    12 posts
    Member since:
    Apr 2017

    Posted 06 Oct Link to this post

    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

  2. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    23 posts

    Posted 11 Oct Link to this post

    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.
Back to Top