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
30
Ignite UI igCombo multi select restriction.
posted

Hi,

I need to create a igcombo with multi select option which can have around 6 values. I need to restrict the multi selection to 2 at all the times. How can i restrict the selection to 2 in this. I am not able to find any options to do the same. Can you please help on this.

Parents
  • 2680
    Verified Answer
    Offline posted

    Hello,

    Thank you for contacting Infragistics support.

    Yes, you could restrict the number of selected values in a combo. This could be achieved by our selectionChanging method. You could detect whether the user tries to select more than 2 items and cancel the event. I created a jsFiddle demonstrating the approach - http://jsfiddle.net/rq49Loab/2/.

    Please let us know if you need anything else.

Reply Children
No Data