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
750
nullText not appearing when using the clear button
posted

Hi,

Im using an igCombo control with the nullText and enableClearButton options.
When the clear button is used while the igCombo does not have focus, the selection is cleared, but the null text does not appear.

Example: http://jsfiddle.net/05qckbqj/


My current workaround is to explicitly set the selectedIndex to -1 in the selectionChanged event if no items are selected.
http://jsfiddle.net/axxc6zLz/

Is there a better way to do this?

  • 16310
    Offline posted

    Hello Robin,

    When you use the clear button the igCombo HAS focus. At the same time, the nullText appears when the combo is out of focus - please refer to http://help.infragistics.com/jQuery/2014.2/ui.igcombo#options:nullText where this is documented.

    Your sample would behave exactly the same way if you do not handle the selectionChanged event, because when you use the clear button this event is not fired.

    This is expected behavior. Please let me know if you have further questions on the matter.

    Best Regards,
    Hristo Anastasov
    Developer Support Engineer
    Infragistics, Inc.