I'm trying to get a list of selectedItems. I've wired up the onClosed event to captured the selectedItems, but unable to capture the list after the clear icon is clicked. Reacting to the onSelectionChanged is a pain because they selection is not in the selectedItems array yet. Is there an event I'm missing or another approach to capture the selected items?
Dear Mike Miller,
Thank you for contacting Infragistics.
Please be advised that in order to capture the selected items during the ‘onClosed’ event, you would have to use the ‘selectedItems()’ function.
Having pressed the ‘clear’ button will clear the combo of all selections and thus the ‘selectedItems()’ function will return an empty collection once the combo closes.
Please refer to the following address where we log on the console the currently selected items - Stackblitz.
You may also take a look at the ‘selectedItems()’ function here.
Additionally, if you have any other questions, please feel free to contact us again.
Hi there...I need to see the stackblitz solution for this, but unfortunately the link is broken. When I click the 'x' in the placeholder field to clear igx-combo selections, 'onClosed' is not fired or at least I cannot hit my breakpoint like I can if I select/deselect individual items in the combo. Please help.