Reload table data with Ajax response
Reload table data with Ajax response
![divyag10](https://secure.gravatar.com/avatar/f1fcb9ec6e2770c691ba7e967a31cda7/?default=https%3A%2F%2Fvanillicon.com%2Ff1fcb9ec6e2770c691ba7e967a31cda7_200.png&rating=g&size=120)
I have a datatable which I destroy using ---- table.destroy(),
then I reinitialize the entire datatable giving parameter ---- ajax:"new data source",
but getting datables.net/tn/7 error.
Also tried the following
$('#datagrid').dataTable().fnClearTable();
var table = $('#datagrid').DataTable();
table.fnReloadAjax(response);
datatable is getting cleared, but not getting reloaded.
what am I doing wrong...?
This discussion has been closed.