Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 83167

Creating a new tables on fnRowCallback

$
0
0
Ok this one has me stumped

Basically on fnRowCallback I call a new function to create a new datatable I pass through aData as this has the data in it I need ffor the second table.


So this is where I am at

fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {

 createsuccesstable(aData); 

}

function createsuccesstable(aData) 

{  

var a = aData["SentTo"];

$("#SucessTable" + aData["MessageID"] + '').dataTable({
            "sDom": "'<'row-fluid'<'span3'l>RCTfrtip'",
            "bPaginate": true,
            "sPaginationType": "full_numbers",
            "aaData" : a,
            "aoColumns":
                [
                    { "mData": "SentTo", "sTitle": "Sent to", "bSearchable": true, "bVisible": true },
                ],
            "aaSorting": [[0, 'desc']]
        })

}


any help would be lovely

regards

Michael

Viewing all articles
Browse latest Browse all 83167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>