Excel export does not show all rows and select amount of register disappeared
Excel export does not show all rows and select amount of register disappeared

I am using a ajax method to fill the datatable. When try to include buttons to export to excel file the option fro selecting the amount of record shown in table disappeared,. And the excel option does no download all rows, just the rows that the user is seeing.
table = $('#myTable').DataTable({
"serverSide": true,
"ajax": "myMethod",
"lengthMenu": [[10 , 25, 100, -1], [10,25, 100, "all"]],
"pageLength": 10,
"dom": 'Bfrtip',
"buttons": [{
extend: 'excel',
text: '<span class="fa fa-file-excel-o"></span> Excel',
exportOptions: {
modifier: {
order: 'current',
page: 'all',
selected: false
}
}
}],
"pagingType": "full_numbers",
"createdRow": function (row, data, dataIndex) {
console.log(data);
agregarColorSegunEstado(data, row);
agregarAbrirDetalle(data, row);
},
"columnDefs": [
{"width": "1%", "targets": 0}
],
"bFilter": true
});
});
This discussion has been closed.
Answers
Hi @vbalsamello ,
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
Please see this FAQ:
https://datatables.net/faqs/index#buttons
Kevin
Thanks it's resolve with the following
And then adding to our dataTable configuraion the ACTION