Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35599

Using a promise object as data source

$
0
0

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?


Viewing all articles
Browse latest Browse all 35599