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;