jQWidgets Forums

This topic contains 1 reply, has 1 voice, and was last updated by  subramgr 10 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxInput autocomplete refresh data #71247

    subramgr
    Participant

    Hello,

    I have a use case where I want to reload the data from a remote service to autocomplete in jqxInput. My data adapter source looks like this.

    While I am able to load the initial data, what I want to do is refresh the data each time the input value changes. How do I do that ?

    var source = {
    datatype: ‘json’,
    url: ‘hack’
    },
    DataAdapter = $.jqx.dataAdapter,
    dataAdapter = new DataAdapter(source, {
    loadServerData: function(params, source, callback) {
    var data = my_custom_logic(params);
    callback({
    records: data,
    totalrecords: data.length
    });

    });

    return dataAdapter;

    jqxInput autocomplete refresh data #71248

    subramgr
    Participant

    never mind I used source: function(query, response) — instead of the data adapter.

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

You must be logged in to reply to this topic.