Refresh Datatable Difficulties

Refresh Datatable Difficulties

iNVERSEiNVERSE Posts: 1Questions: 0Answers: 0
edited May 2013 in General
I'm struggling to find a way to refresh my data table. It is currently set up and being populated in this manner:

[code]
function AjaxCall() {
// Send ajax call
SendAjax("/Services/EventHandler?SomeHandler", null, SuccessFunction, DebugAjaxFailure);
}
[/code]

[code]
function SuccessFunction(data)
{
$('#myDataTable').dataTable(
{
"bFilter": false,
"bPaginate": false,
"bSort": false,
"bDestroy":true,
"aaData": data,
"aoColumns": [
{ "mData": "SomeData" },
{ "mData": "SomeOtherData" },
{ "mData": "MoreData" },
{
"mData": "DataId",
"mRender": function (rowData, type, full)
{
return 'Edit / Delete';
}
}
]
}
);
}
[/code]

Then when I edit the table, I want to be able to "Save" the table and refresh it. What would be the best way to go about this? I have tried [code]fnDraw[/code], but that won't recall the Ajax call.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Have you tried this plug-in: http://datatables.net/plug-ins/api#fnReloadAjax ?

    Allan
This discussion has been closed.