Export to Excel button getting invisible after loading Data in the Jquery DataTable

Export to Excel button getting invisible after loading Data in the Jquery DataTable

wariskantroowariskantroo Posts: 1Questions: 1Answers: 0
edited April 2016 in Free community support

I am using jquery Datatable on which I am populating some data from the data source. Before data is being populating in the Datatable I could see all the export buttons e.g export to Excel or Pdf etc. As soon as I populate Data on the Datatable the export buttons gets hide somehow and I am unable to figure out what is causing the issue. Somebody please help me with this issue. Thank you. below is my JS code

    $(document).ready(function() {
        $('#importPool').DataTable({
            //"dom": "Bfrtip",
            "dom": 'lBfrtip',

            //btext: 'Export',
            buttons: [
            'copyHtml5',
            'excelHtml5',
            'csvHtml5',
            'pdfHtml5'
            ]

        });

    });

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • allanallan Posts: 63,208Questions: 1Answers: 10,415 Site admin

    Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.

    Information on how to create a test page, if you can't provide a link to your own page can be found here.

    Thanks,
    Allan

This discussion has been closed.