Accessing Odata EnumType

I have the following OData.  What I am trying to achieve in Angular is to use the EnumType  for dropdown list.  How do I retrieve the EnumType ?

```
<?xml version="1.0" encoding="utf-8" ?>
<edmx:EdmxVersion="4.0"xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
<edmx:DataServices>
<SchemaNamespace="DataService"xmlns="http://docs.oasis-open.org/odata/ns/edm">
<EnumType Name="BackLight">
<MemberName="Level0"Value="0"/>
<MemberName="Level1"Value="1"/>
<MemberName="Level2"Value="2"/>
<MemberName="Level3"Value="3"/>
<MemberName="Level4"Value="4"/>
<MemberName="Level5"Value="5"/>
<MemberName="Level6"Value="6"/>
<MemberName="Level7"Value="7"/>
</EnumType>
<EnumType Name="Sound">
<MemberName="Level1"Value="1"/>
<MemberName="Level2"Value="2"/>
<MemberName="Level3"Value="3"/>
</EnumType>
<ComplexType Name="SystemConfiguration">
<PropertyName="MeterBackLight"Type="DataService.BackLight"Nullable="false"/>
<PropertyName="MeterSound"Type="DataService.Sound"Nullable="false"/>
</ComplexType>
<EntityContainer Name="Container">
<EntitySetName="DisplayConfig" EntityType="DataService.SystemConfiguration"/>
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
```

1 Reply

SP Sureshkumar P Syncfusion Team June 1, 2020 11:39 AM UTC

Hi Albert, 
 
Greetings from Syncfusion support.  
 
Based on your shared information, we suspect that you have enum data in your service. We suggest you convert the enum data into json data using GetEnumSelectList to load the dropdownlist component to achieve your requirement.  
 
We have created the sample based on your requirement. please find the sample here: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Dropdownlistcore345959262  
 
 
Regards, 
Sureshkumar P 


Loader.
Up arrow icon