Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81799

data not displaying while printing datatable

$
0
0

I'm working on implementing Copy, Excel, PDF, and Print. I'm not able to export data table with input fields. while printing data is not getting displayed in the table

  var table = $('#quotationproduct_table').DataTable({
            dom: 'Bfrtip',
            buttons: [
                'copy', 'csv', 'excel', 'pdf', 'print'
            ],
            pageLength: 10,
            processing: true,
            serverSide: true,
            bSort: false,
            responsive: true,
            ajax: {
                url: "{{ route('quotations.index') }}",
                data: {
                    'enquiryid': $("#enquiryid").val()

                }
            },
            columns: [

                {
                    data: 'productid_txt',
                    name: 'productid_txt'
                },
                {
                    data: 'productname_txt',
                    name: 'productname_txt'
                },
                {
                    data: 'quantity_txt',
                    name: 'quantity_txt'
                },
                {
                    data: 'unit_txt',
                    name: 'unit_txt'
                },
                
                {
                    data: 'vendor',
                    name: 'vendor',
                    
                }
              
            ],

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


Viewing all articles
Browse latest Browse all 81799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>