Lets assume that I have the following code:
ListById: function (id) {
return $.post('/DRE/ListById', { "id": id }).then(function (response) {
return response;
});
}
That would return a JSON, how can I use this function as datasource?
↧
Using a promise object as data source
↧