export drill down data

export drill down data

spudwaspudwa Posts: 8Questions: 0Answers: 0
edited April 2014 in TableTools
I'm using the following code to display a second row of detail data associated with a row, but it doesn't get exported with the primary row. How do I make the grid 'aware' that the detail data that is being displayed should be exported too
[code]
$('#auditLog tbody').on('click', 'td', function() {
var tr = $(this).parents('tr');
var row = oTable.row(tr);

if (row.child.isShown()) {
// This row is already open - close it
row.child.hide();
tr.removeClass('shown');
}
else {
// Open this row
var oldD = tr.attr('data-old');
var newD = tr.attr('data-new');
var str = oldD;
if (oldD != "" && newD != "")
str += '\u21D2';
str += newD;
str += tr.attr('data-error');
row.child(str).show();
tr.addClass('shown');
}
});
[/code]
This discussion has been closed.