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
35
Combos with single selection to close automatically after selection
posted

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

Parents
No Data
Reply
  • 1300
    Verified Answer
    Offline posted

    Hello Miguel,

    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.

    Regards,

    Monika Kirkova,

    Infragistics

Children