Datatable lost responsive with export some culumns

Datatable lost responsive with export some culumns

pippuccio76pippuccio76 Posts: 19Questions: 10Answers: 0

HI , sorry for english , if i select some row (all minus the first) the pdf go out of margin right .

This is my code :

    $('#datatable').DataTable({
       dom: 'Bfrtip',
       buttons: [
             'print', 'excel' , ' pdf ' 
          {
            extend: 'excelHtml5',
            exportOptions: {
                columns: [  1, 2, 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 ]
            }
          },
          {
            extend: 'pdfHtml5',
            exportOptions: {
                columns: [ 1, 2, 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 ]
            }
          },
      ]

      });

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.