Exporting not working using jqueryTabs and TableTool

Exporting not working using jqueryTabs and TableTool

thebosstheboss Posts: 1Questions: 0Answers: 0
edited January 2013 in TableTools
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]

Replies

  • mf_a2ifmf_a2if Posts: 32Questions: 0Answers: 0
    edited January 2013
    Look at this discussion : http://datatables.net/forums/discussion/9559/columnfilter-works-only-on-last-datatable-when-created-in-a-function#Item_1
This discussion has been closed.