DataTables logo DataTables

via Ad Packs
DataTables. fnReloadAjax()
  • MaksimMaksim
    Posts: 2
    Hi, I have problem with this code
             var detailTable;
            var openDialog = function(id) {
    
                detailTable.fnReloadAjax( 'service/detail/'+ id );
                console.log(detailTable);
                $("#detailsBlock").modal({
                    overlayClose:true,
                    opacity:70,
                    overlayCss:{backgroundColor:"#eee"}
                });
            }
    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
    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
    
                }); 
    Any ideas? :)
  • MaksimMaksim
    Posts: 2
    I've found problem it was in modal dialog. Necessary add persist:true оption
This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.

In this Discussion