Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
igx-combo onClearIconClicked
posted

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?

Parents
  • 60
    Verified Answer
    Offline posted

    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.

Reply Children
No Data