jQWidgets Forums

jQuery UI Widgets Forums General Discussions Lists ComboBox Remote search on Paste

This topic contains 1 reply, has 1 voice, and was last updated by  jone@cheneybrothers.com 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Remote search on Paste #90129

    I have a JQXComboBox using a remote JSON source. The search function works as intended when you type, however, if you paste into the combo box the search function is not triggered. Is there a way to call the search function if I bind the on paste event?

    Remote search on Paste #90135

    I was able to figure this out, here is what I did for anyone needing something similar.

    comboBox.on(‘paste’, function (event) {
    var self = this;
    setTimeout(function(e) {
    var searchString = $(self).val();
    comboBox.jqxComboBox(‘searchString’, searchString);
    comboAdapter.dataBind();
    });
    });

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

You must be logged in to reply to this topic.