jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox remote search

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 11 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • remote search #46489

    damc
    Participant

    Hi.

    How can I set or select some value in combo with remote search feature. I would like to select a value which is not yet loaded.
    Is there some function which can I use from code and have same functionality like search function which is called when the user types into the ComboBox’s input field?

    Thanks,
    Damc

    remote search #46563

    Dimitar
    Participant

    Hello Damc,

    You cannot select the item before it is loaded, but can do it immediately after that, on the bindingComplete event. E.g.:

    $("#jqxComboBox").on('bindingComplete', function (event) {
        var item = $("#jqxComboBox").jqxComboBox('getItemByValue', "London");
        $("#jqxComboBox").jqxComboBox('selectItem', item);
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    remote search #46568

    damc
    Participant

    Hello Dimitar,

    And how can I load this item (Is there some function which can I use from code and have same functionality like search function which is called when the user types into the ComboBox’s input field)?

    Thanks,
    Damc

    remote search #46632

    Dimitar
    Participant

    Hi Damc,

    You can load the item only by searching for it (typing in the combobox input).

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.