pagination
pagination
tman12
Posts: 3Questions: 1Answers: 0
Hi Guys
im stuck on this issue.
i have generated a datatable table dynamically, as the data is coming from mysql Table. everything works fine, that is the search box, the pagination. now the only thing that i need is to increase the pages from default 5 to 10 for example. i want to change from
previous 1 2 3 4 5 .....90 next
to
previous 1 2 3 4 5 6 7 8 9 10 .... 90 next
thank you in advance
This discussion has been closed.
Answers
Hi @tman12 ,
There are several
pagingType
options to use from by default, and additional pagination plugins to choose from. Yours isn't there already, I'm afraid, but you could use those existing plugins as a basis to develop your own.Cheers,
Colin
@colin, thank you for your reply, just to let you know that i forgot to mention that im using a pre made bootstrap 3 template by the name of Gentellela Alela.
the
pagingType
options do not have what im looking for, please check the pick so you know how my pagination is displayed on my page.Yep, as I said, yours isn't there, you'll need to create your own, I'm afraid.
thanks colin, but i did manage to fix the issue, all i had to do was after my
$(document).ready(function() {
i needed to set this
$.fn.DataTable.ext.pager.numbers_length = 10
and it worked perfectly fine.