How do I get the drowp down items of a ComboBox and Dataform editor of type combobox to give enum names instead of values

How do I get the drow down items of a ComboBox and Dataform editor of type combobox to give enum names instead of values? 


Currently when using the Dataform on an object with an enum, the drop-down items are 0,1,2 etc instead of names:

public enum ItemType

{

    Product,

    Service,

    Other,

}


public class ItemData

{

           public ItemType Type{get; set;}

}





1 Reply

SS SaiGanesh Sakthivel Syncfusion Team June 12, 2023 12:38 PM UTC

Hi paula,


#Regarding DataFormCombox editor with enum collection

We could not replicate the reported scenario from our end. We have prepared the sample with the given information and checked the sample from our side. Please refer to the tested sample in the attachment.


Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details,

.

  • Share the issue replication steps and video.

  • Share the issue replicate platform.


It will be helpful for us to check on it and provide you with the solution as soon as possible.


Regards,
SaiGanesh Sakthivel


Attachment: DataFormMAUI_4a152673.zip

Loader.
Up arrow icon