Using multiple extras

Using multiple extras

simkessysimkessy Posts: 4Questions: 1Answers: 0
edited November 2013 in DataTables 1.9
I have two tables and I'm using a lot of the extras. I'm trying to get TableTools to work with two of the tables on my page. However, the buttons aren't the same and they stop working when both tables are used. If I run the function to create only the first table it works fine, if I run the function to render the second table it doesn't. I'm not sure if it's because the second table is larger.

This is what it looks like: http://i.imgur.com/tHoVuGo.png

[code]
function dataTables(){
var dataTables = $('.dataTable').dataTable({
"bJQueryUI": false,
"bPaginate": false,
"bLengthChange": true,
"bFilter": true,
"bSort": true,
"bInfo": true,
"bAutoWidth": true,
"bStateSave": true,
"sScrollY": 200,
"sScrollX": "100%",
"bScrollCollapse": true,
"bProcessing": true,
"bDeferRender": true,
"oLanguage": {"sSearch": "Search: "},
"sDom": 'TMDR<"clear">lfrtipS',
"sPaginationType": "full_numbers",
"oTableTools": {
"sSwfPath": "SiteAssets/DataTables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf",
"aButtons":[{
"sExtends": "xls",
"sFileName": "UserTaxonomy.xls",
"bFooter": false
},'pdf','print']
}
});
}[/code]
This discussion has been closed.