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.
Hi,
I have a list:
Now i want the user to be able to select items in a dropdown and add this to my Types list,
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.