bootstrap pagination next button and numbers
bootstrap pagination next button and numbers
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
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
This discussion has been closed.
Replies
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