November Happy Hour will be moved to Thursday December 5th.

Display dropdown when add items to list

Vote:
 

Hi,

I have a list:

[ClientEditor(SelectionFactoryType = typeof(MyTypesFactory))]
[UIHint("DropDownList")]
public virtual IList<string> Types { get; set; }

Now i want the user to be able to select items in a dropdown and add this to my Types list,

    public class MyTypesFactory : ISelectionFactory
    {
        public IEnumerable<ISelectItem> GetSelections(ExtendedMetadata metadata)
        {
            return _myTypes.Select(item => new SelectItem {Value = item, Text = item}).Cast<ISelectItem>().ToArray();
        }

        private readonly string[] _myTypes = {
            "Article", "Book", "Dataset"
        };
	}

But i can't get the dropdown to display when the user click on the add button, i only see the dropdown on the already selected items (the items in my Types list)

How can i get a dropdown with a list of the items that my array, _myTypes , contains? Use EPI 11.

#222475
Edited, May 06, 2020 10:26
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.