I understand that when setting serverSide: true
, you can only print what you see in the table.
Is there a way to configure the print button so that you can print all records, and not only the ones seen that moment in the table?
As a workaround, I suppose I could disable scroller (going back to paging) and add a "select all" option. But I'm hoping I could keep Scroller enabled and be able to print all records. Is this possible?
[...code...],
serverSide: true,
scrollX: true,
scrollY: 300,
deferRender: true,
scrollCollapse: true,
scroller:true,
buttons: [
{ extend: "edit", text:'Edit selected row' ,editor: editor },
{ extend: "colvis", text:'Select Visible Columns' },
{
extend: 'print',
autoPrint: true,
exportOptions: {
columns: ':visible'
}
}
],
[...code...]