Dropdown List as FormItem in Data Form control

I am wondering if it is possible to have a drop down list in the data form control that has spaces in the item?  I have seen examples where you can populate the drop down by tieing it to an enum.  However, I would like to populate the drop down with a list of US state names all spelled out.  For example, one item would be "New York" but since I have that as an enum right now, it is showing in the drop down as "NewYork" without the space.


1 Reply

UD UdhayaKumar Duraisamy Syncfusion Team September 25, 2024 11:25 AM UTC

To render the Dropdown List component within the Data Form component and display the list according to your requirements, you can utilize the Templates option. This allows you to use your desired data source with the Dropdown List component.


For more information, please refer to the following documentation and sample:


Loader.
Up arrow icon