aButtons is not working as expected in datatable

aButtons is not working as expected in datatable

smalik2043smalik2043 Posts: 2Questions: 0Answers: 0
edited December 2013 in TableTools
I am using datatable and tabletools to exports to CSV, but what I want is to diable xls, copy to clipboard and print buttons. I am using the below functionality as described in the documentation but it is not working. It still shows all buttons.

[code]
$("#table").dataTable({bDestroy: true,"sPaginationType": "full_numbers","sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "media/swf/copy_csv_xls_pdf.swf",
"aButtons": [
"csv",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv" ]
}
]
}
});

also tried with this

"oTableTools": {
"aButtons": [
"csv"
]
}
[/code]

but no use

Replies

  • smalik2043smalik2043 Posts: 2Questions: 0Answers: 0
    Got it working, downloaded the old version casues this issue. Now I download the latest version and it works
This discussion has been closed.