Reputation: 1060
New to datatables and so far have tried every solution I can google.
I have a datatable with the following setup but I cannot get the paging buttons to show up.
<script>
$(document).ready(function () {
$('table[id^="commissionSummaryTable"]').dataTable({
dom: 'frtB',
scrollY: '50vh',
scrollCollapse: true,
"bAutoWidth": true,
"pagingType": "full_numbers",
"iDisplayLength": 20,
"bLengthChange": false,
ordering: false,
buttons: [
{
extend: 'csv',
className: 'btn btn-success',
text: 'Export to Excel',
//footer: true,
title: 'Commissions Export'
}
]
});
});
Any suggestions are appreciated.
Upvotes: 1
Views: 6804