bootstrap pagination next button and numbers

bootstrap pagination next button and numbers

pabloppablop Posts: 19Questions: 3Answers: 0
edited August 2013 in Plug-ins
I'm using the bootstrap pagination plugin
https://github.com/DataTables/Plugins/tree/master/integration/bootstrap/2
with dataTables 1.9.4

I'm using server side processing:
var table = $('#users').dataTable({
"bAutoWidth": false,
"bInfo": false,
"aaSorting": [],
"bPaginate": true,
"iDisplayLength": 10,
'bLengthChange': false,
"bServerSide": true,
"sAjaxSource": "/users/",
"aoColumns": [
null,
null,
null,
null,
{ "bSortable": false }
]
});

I have several issues:
- Clicking on the Next button doesn't do anything.
- The Next button isn't disabled when reaching the last page.
- It shows page numbers beyond the iTotalFilteredCount. For example, if I have 30 total records with a page size of 10, I shouldn't be able to click on page 4 and 5. Is it possible to hide non existing page numbers and disable the button?

Thanks

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    > "bServerSide": true,

    Have you fully implemented server-side processing?

    Can you please link to a test case: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
  • pabloppablop Posts: 19Questions: 3Answers: 0
    Thank you, the live server side example helped me find the issue in my code.
This discussion has been closed.