WjAutocomplete serverside filtering

Posted by: sh.koizumi on 30 November 2017, 4:28 am EST

    • Post Options:
    • Link

    Posted 30 November 2017, 4:28 am EST

    I want to make the autocomplete works with remote datasource. In some of field we expect to list 10000 but of-course it will consume a lot of resource to fetch 10000 results and render in dom. So what I want to do is adding some query string to this rest api so that every type user make it will query against server like “api/results?searchtext=us&perPage=20” so only limited result will return and user has to type more to get the correct item. I tried to look into text-changed event but it didn’t do anything so I am not sure if this is doable with WjAutocomplete component.

  • Posted 3 December 2017, 4:36 pm EST

    Hi,

    I would suggest you use ItemsSourceFunction, which is designed specifically for use case like these.

    http://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.input.AutoComplete.Class.html#itemsSourceFunction

    ~nilay6

  • Posted 5 December 2017, 5:55 am EST

    Thanks That’s exactly I was looking for.

Need extra support?

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

Learn More

Forum Channels