No export buttons with TableTools when sRowSelect is multi

No export buttons with TableTools when sRowSelect is multi

ftaurinoftaurino Posts: 7Questions: 0Answers: 0
edited May 2012 in TableTools
hi all,

when I set TableTools buttons to select_all and select_none with "sRowSelect": "multi"

[code]
"oTableTools": {
"sRowSelect": "multi",
"aButtons": [
{
"sExtends": "select_all",
"sButtonText": "Seleziona tutti"
},
{
"sExtends": "select_none",
"sButtonText": "Deseleziona tutti"
}
],
"sSwfPath": "./datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"
},
[/code]

the page is ok and the two buttons works normally.

If I add a button to export in csv:

[code]
"oTableTools": {
"sRowSelect": "multi",
"aButtons": [
{
"sExtends": "select_all",
"sButtonText": "Seleziona tutti"
},
{
"sExtends": "select_none",
"sButtonText": "Deseleziona tutti"
},
{
"sExtends": "csv",
"sButtonText": "Esporta in CSV"
}
],
"sSwfPath": "./datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"
},

[/code]

firebug give me this error:

ZeroClipboard_TableTools is not defined
https://192.168.3.102/dbletture/datatables/extras/TableTools/media/js/TableTools.js
Line 1272

and the page does not render normally!

please help!

francesco

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The 'csv' button uses a Flash movie to provide its save feature and that requires ZeroClipboard. ZeroClipboard is included in the same directory as TableTools in the download package.

    Allan
  • ftaurinoftaurino Posts: 7Questions: 0Answers: 0
    thanks allan!

    I've included the zeroclipboard.js and now it's working!

    f
This discussion has been closed.