Hi,
Is there a way to close the overlay of a igx-combo with single selection when the combo item is selected ?
Best regards,
Miguel Domingues
Hello Miguel,
I am glad that you find my suggestion helpful and were able to solve your issue.
Thank you for using Infragistics components.
Regards,
Monika Kirkova,
Infragistics
Hi Monika,
Thank you for the quick reply, your example helped alot.
I have many dynamically generated combo's so your example is for a static combo.
After investigating this further, I determined that your requirement could be achieved by setting the “newSelection” array to be equal to the “added” array, in order to have single selection and then closing the combo onSelectionChange event:
public closeCombo(evt){
if (evt.added.length) {
evt.newSelection = evt.added;
this.combo.close();
}
I have prepared a sample, demonstrating the described behavior. Please test it on your side and let me know if you need additional information regarding this matter.