Display name of enumeration.

Hi all,

I'm using the PropertyGrid control to automatically show all of the properties of a selected item.
By using the 'DisplayName' attribute I can change the displayed text of a property.

One of my properties is an enumeration so it automatically shows a dropdown with the possible enumeration values.
But instead of showing the name of the enumeration field I want another custom text.
Is there any way to accomplish this (attribute on enumeration, converter, custom editor, ....)?

Kind regards,

Arjan

2 Replies 1 reply marked as answer

BR Bharathi Rajakantham Syncfusion Team January 11, 2021 04:51 PM UTC

Hi Arjan, 
 
Thanks for contacting Syncfusion Support, 
 
We are checking the reported query from our side and we will update you the further details on 13th Jan 2021. We appreciate your patience until then. 
 
Regards, 
Bharathi R 



BR Bharathi Rajakantham Syncfusion Team January 13, 2021 04:18 PM UTC

Hi Arjan, 
 
Thanks for your Patience, 
 
We have checked the reported query “ Display name of Enumeration ” from our end. Currently we don’t have any direct support for DisplayName for Enums. You can use CustomEditor or Convertors to achieve your requirement. Please check the sample  and the documentation link for your reference. 
 
 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Bharathi R 


Marked as answer
Loader.
Up arrow icon