jQWidgets Forums

jQuery UI Widgets Forums General Discussions Using custom search function/displaying all results with jqxInput

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  tjex 5 years ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author

  • tjex
    Participant

    The integrated search modes with the jqxInput are not sufficient for my needs. Since I use a custom source function to query an API, I do not want jqxInput to further filter my results. I have tried both setting a searchMode of 'none' (which results in no autocomplete results being displayed) and also providing a custom filter function that always returns true (which doesn’t have any difference on the autocomplete results).

    How can I have the jqxInput display the full list of results from my source function without further filtering them?


    admin
    Keymaster

    Hi tjex,

    jqxInput is auto-complete component. The list of displayed results is restricted by its items property. If you need a full list of results you need to use jqxComboBox component.

    Regards,
    Peter


    tjex
    Participant

    IMO it does not make sense for it to be an autocomplete component and not offer custom filtering functionality. Autocomplete should be able to compensate for misspelling or the absence of punctuation. With the current way our system is set up it will be difficult to switch to a jqxComboBox. Are you sure there is no way to provide a custom filter function/display all results in a jqxInput?


    tjex
    Participant

    Another problem with the jqxComboBox is it does not allow user-only input. In our use case we want to allow the user to select an autocomplete result OR supply their own text, but with jqxComboBox it is proving to be difficult to support this use case, as the value will be blank unless an autocomplete result is selected.


    tjex
    Participant

    To anyone else who may read this thread later, I ended up solving the issue in my source function by setting the query parameter to an empty string right before calling the callback with updated results. This gave the desired functionality.

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

You must be logged in to reply to this topic.