When calling the "select" method and passing "true" for the "event" parameter, this does not call the "selectionChanged" event like the documentation says.
See attached sample.
igComboEx_select_method_not_triggering_event.zip
Hi,
There are also methods:
You can also use them instead of select.
Sincerely,
Nadia Robakova
Thanks, this fixes my issue. Can I suggest making the API documentation for the "select" method a little more clear on what it expects? The documentation says "jQuery element", but that is sort of ambiguous. I would expect the select method to be able to take an item from the bound list, but what it is expecting is an actual "<li> jQuery list item".
My example was auto selecting an item when the drop down list gets filtered down to one item.
In the select method you have to add the element not the data.In you case when you call:
ui.owner.element.igCombo("select", filteredItems[0].data, { }, triggerSelectionChanged);
the method is not executed because it expect jQuery element.You have to change it to:
ui.owner.element.igCombo("select", filteredItems[0].element, { }, triggerSelectionChanged);
Here is the link for the api documentation for this method:
https://www.igniteui.com/help/api/2018.2/ui.igCombo#methods:select
Let me know if I may be of further assistance.
Sincerely,Nadia Robakova