data not displaying while printing datatable
data not displaying while printing datatable

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.
This discussion has been closed.
Answers
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