Creating a new tables on fnRowCallback
Creating a new tables on fnRowCallback
michaelwhite
Posts: 8Questions: 0Answers: 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
[code]
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']]
})
}
[/code]
any help would be lovely
regards
Michael
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
[code]
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']]
})
}
[/code]
any help would be lovely
regards
Michael
This discussion has been closed.