Exporting not working using jqueryTabs and TableTool
Exporting not working using jqueryTabs and TableTool
theboss
Posts: 1Questions: 0Answers: 0
I have a problem with my Exporting buttons: it works just for the first jQuery Table, but in other tables it doesn't work.
I have included all what needs to be included.
Here is an example for 2 jqueryTabs:
[code]
var jQuery2 = jQuery.noConflict();
jQuery2(document).ready(function() {
jQuery2('#t1').dataTable( {
"bJQueryUI": true,
"bScrollCollapse": true,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"copy",
"csv",
"xls",
{
"sExtends": "pdf",
"sPdfOrientation":"landscape",
"sPdfMessage": "Your custom message would go here."
},
"print"
]
}
});
jQuery2('#t2').dataTable( {
"bJQueryUI": true,
"bScrollCollapse": true,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"copy",
"csv",
"xls",
{
"sExtends": "pdf","sPdfOrientation": "landscape",
"sPdfMessage": "Your custom message would go here."
},
"print"
]
}
} );
});
[/code]
I have included all what needs to be included.
Here is an example for 2 jqueryTabs:
[code]
var jQuery2 = jQuery.noConflict();
jQuery2(document).ready(function() {
jQuery2('#t1').dataTable( {
"bJQueryUI": true,
"bScrollCollapse": true,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"copy",
"csv",
"xls",
{
"sExtends": "pdf",
"sPdfOrientation":"landscape",
"sPdfMessage": "Your custom message would go here."
},
"print"
]
}
});
jQuery2('#t2').dataTable( {
"bJQueryUI": true,
"bScrollCollapse": true,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"copy",
"csv",
"xls",
{
"sExtends": "pdf","sPdfOrientation": "landscape",
"sPdfMessage": "Your custom message would go here."
},
"print"
]
}
} );
});
[/code]
This discussion has been closed.
Replies