TableTools Prints select menu for each TH element
TableTools Prints select menu for each TH element
ejh
Posts: 17Questions: 0Answers: 0
I create a select menu for each TH element in the table footer. When I use TableTools to save as a PDF/CSV/XLS it includes all the choices from each select menu (for each TH element) in the table footer. How do I exclude this?
This discussion has been closed.
Replies
I found the solution on http://stackoverflow.com (which has many posts about problems/using DataTables).
The solution is:
[code] "bFooter": false [/code]
Put that in:
code] // initialize Table Tools
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
// setting SWF path
"sSwfPath": ["swf/copy_csv_xls_pdf.swf"],
// buttons
"aButtons": [
{ "sExtends": "copy",
"bFooter": false
}, // end sExtends
{ "sExtends": "print",
"bFooter": false
}, // end sExtends
{ "sExtends": "csv",
"bFooter": false
}, // end sExtends
{ "sExtends": "xls",
"bFooter": false
}, // end sExtends
{ "sExtends": "pdf",
"bFooter": false,
"sPdfOrientation": "landscape"
} // end sExtends
] //end aButtons
} //end oTableTools [/code]