Missing button (copy, csv, excel and pdf) on datatable of some browser

Missing button (copy, csv, excel and pdf) on datatable of some browser

kaewmspkaewmsp Posts: 3Questions: 1Answers: 0

I use datatables in booster for develop and open all button (copy, csv, execl, pdf and print). I found problem on very browser on some PC. In show but print button and it not work! pls help!!!! :'(

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394

    Which specific browser(s) have the problem?
    Also, please show your code, or preferably a link to a test case showing the issue.

  • kaewmspkaewmsp Posts: 3Questions: 1Answers: 0

    I found very broswer(s) on some PC. And my code is below. thank you for help

    $(document).ready(function() {
    var oTable = $('#example').dataTable({
    "oLanguage": {
    "sSearch": "Search all columns:"
    },
    "aoColumnDefs": [{
    'bSortable': false,
    'aTargets': [0]
    } //disables sorting for column one
    ],
    'iDisplayLength': 12,
    "sPaginationType": "full_numbers",
    "dom": 'T<"clear">lfrtip',
    "tableTools": {
    "sSwfPath": "js/datatables/tools/swf/copy_csv_xls_pdf.swf"
    }
    });

  • HPBHPB Posts: 73Questions: 2Answers: 18

    Directly from https://datatables.net/extensions/tabletools/

    This extension has now been retired and has been replaced by the Buttons and Select extensions. The documentation is retained for legacy reference only. New projects should use Buttons and Select in preference to TableTools.

    Use https://datatables.net/extensions/buttons/ instead.

  • allanallan Posts: 61,822Questions: 1Answers: 10,127 Site admin
    Answer ✓

    TableTools can only use Flash based export buttons. So if Flash isn't installed on the computer, it won't work at all.

    Buttons and use either Flash or HTML5 types depending on what options you include and the capabilities of the browser.

    Allan

  • kaewmspkaewmsp Posts: 3Questions: 1Answers: 0

    Thank you for all.
    [solved] I update windows that problem on pc .

    it' work!!

This discussion has been closed.