I have a Webpart, in that I need to replicate the dropdown with sharepoint list choice field.
So I need to display all the options in the choice field to my custom dropdown field in UI.
this should be a dynamic, we can add the new values in the sharepoint list choice field and it should reflect in webpart dropdown
You can loop through
StringCollectionand set the dropdowns.