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

How to print all records when serverSide is true

$
0
0

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...]

Viewing all articles
Browse latest Browse all 82534

Trending Articles