Hi,
I am currently using the multi selection dropdownlist. I have populated the list and selected 2 items. I would now like to press a button on my screen and display the items I have selected. (This is my first step towards using the dropdownlist to select multiple items and add them to a table.)
So far, I have managed to display the first selected item on my screen. I would now like to display all the selected items.
My dropdownlist is set up exactly as in the syncfusion documentation here: https://help.syncfusion.com/lightswitch/html-client/dropdownlist/multi-selection-modes
My current button code is this:
myapp.DisplayItems_execute = function (screen)
{
//Read all the selected items in the drop down list
var itemsDropdown = screen.findContentItem("ItemListBox");
//take first selected item and output a property
var selectedService = servicesDropdown.value.selectedItem;
screen.TestString = selectedService.Id;
};
Thank you very much in advance,
Anya-May Hope