Custom wj-auto-complete works only with minimum two input search letters

Posted by: muhammad.f.mehboob on 20 February 2020, 4:25 am EST

    • Post Options:
    • Link

    Posted 20 February 2020, 4:25 am EST

    Hi Team,

    I have implemented custom search with wj-auto-complete but it only works when you type two letters in the search box. Is that by design? Is it possible to make it work with one search letter? I need to trigger the “itemsSourceFunction” when user type only one word in the search box.

    https://www.grapecity.com/wijmo/demos/Input/AutoComplete/Searching/CustomSearch/angular

    Thanks,

    Muhammad Faisal

  • Posted 23 February 2020, 7:41 pm EST

    Hi,

    This is the default behavior of AutoComplete. It only starts the search when at least 2 characters are entered in the input element. You can change this number by using the minLength property of the AutoComplete.

    https://www.grapecity.com/wijmo/api/classes/wijmo_input.autocomplete.html#minlength

    Simply set its value to 1 and it will trigger the search as soon as a single character is entered in the element.

    Regards,

    Ashwin

  • Posted 24 February 2020, 2:55 am EST

    Thank you for the response.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels