TableTools Prints select menu for each TH element

TableTools Prints select menu for each TH element

ejhejh Posts: 17Questions: 0Answers: 0
edited August 2013 in TableTools
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?

Replies

  • ejhejh Posts: 17Questions: 0Answers: 0
    Problem solved!

    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]
This discussion has been closed.