Print button not showing up

Print button not showing up

sudhamallenahallisudhamallenahalli Posts: 1Questions: 1Answers: 0

I have a problem when using Print button:

Uncaught TypeError: Cannot set property 'print' of undefined
(anonymous function) @ buttons.print.min.js:1

Uncaught TypeError: Cannot read property 'print' of undefined
f @dataTables.buttons.min.js:17
e.extend._resolveExtends @dataTables.buttons.min.js:18
e.extend._buildButtons @dataTables.buttons.min.js:12
e.extend._constructor @dataTables.buttons.min.js:11
m @dataTables.buttons.min.js:6

In my BundleConfig,cs. I have included
"~/Content/buttons.dataTables.min.css"
"~/Scripts/dataTables.buttons.min.js",
"~/Scripts/buttons.print.min.js"

Here is my script:

@section Scripts {

$(document).ready(function () { var table = $('#mytable').DataTable(); new $.fn.dataTable.Buttons(table, { "buttons": [ 'print' ] }); table.buttons().container() .appendTo($('.col-sm-6:eq(0)', table.table().container())); });

}

Answers

  • loloskiloloski Posts: 46Questions: 5Answers: 1

    double check if you download all the plugins, I suggest download the local copy of everything then test

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    We'd need a link to the page showing the issue to be able to debug the issue.

    Allan

This discussion has been closed.