DataTables. fnReloadAjax()

DataTables. fnReloadAjax()

MaksimMaksim Posts: 2Questions: 0Answers: 0
edited July 2012 in General
Hi, I have problem with this code
[code] var detailTable;
var openDialog = function(id) {

detailTable.fnReloadAjax( 'service/detail/'+ id );
console.log(detailTable);
$("#detailsBlock").modal({
overlayClose:true,
opacity:70,
overlayCss:{backgroundColor:"#eee"}
});
}[/code]
Problem appear after second call(first one after page load works perfect) openDialog. DataTables just "Processing" my server tell in log that everything fine and data has been send. I just use fnReloadAjax from this page http://datatables.net/plug-ins/api. And there is no mention about that problem.
table init code in ready() section [code]detailTable = $('#details').dataTable({
/*"sAjaxSource":"service/details",*/
"bProcessing":true,
"bServerSide": true,
"bDestroy": true,
/* "bDeferRender":true,*/
"aoColumns":[
{ "mDataProp":"lineNumber" },
{ "mDataProp":"supplierItemCode" },
{ "mDataProp":"itemDescription" },
{ "mDataProp":"invoiceQuantity" },
{ "mDataProp":"invoiceUnitNetPrice" }
], "fnServerData":connectPost

}); [/code]
Any ideas? :)

Replies

  • MaksimMaksim Posts: 2Questions: 0Answers: 0
    I've found problem it was in modal dialog. Necessary add persist:true оption
This discussion has been closed.