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
140
igCombo "select" method not trigging event, binding knockout
posted

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

Parents
  • 2395
    Verified Answer
    Offline posted

    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

Reply Children