Here you can find an example of "with deleted data." Is it possible to replace it with local storage (js array) or is it better to combine local with remote data? I want to fill the first page with elements from an array and use ajax for the next pages if the user wants more.
{ multiple: true, ajax: { url: "/myproducts/categories", dataType: 'json', quietMillis: 100, data: function (term, page) { return { q: term, pageSize: 10, pageNumber: page }; }, results: function(data, page) { var more = (page * 10) < data.Total; return { results: data, more: more }; } } }
Thanks in advance!
source share