pagingType does not seem to work
pagingType does not seem to work
rogersbilly
Posts: 8Questions: 1Answers: 0
Here's my code. I'd like to display the page buttons as in this example
https://datatables.net/examples/basic_init/alt_pagination.html
I've tried the various options full, full_numbers and it doesn't change anything. Everything else seems to be working. I got the latest version 1.10 and it seems to have no effect. Can someone see what I'm doing wrong?
/* Initialise the DataTable */
var oTable = $('#example').DataTable({
"pagingType": "full_numbers",
"aoColumns": [
{ "sWidth": "10%" },
{ "sWidth": "10%" },
{ "sWidth": "10%" },
{ "sWidth": "10%" },
{ "sWidth": "10%" },
{ "sWidth": "10%" },
{ "sWidth": "10%" },
{ "sWidth": "10%" }
],
"oLanguage": {
"sSearch": "Search all columns:"
},
"bAutoWidth": false
});
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Seems to work okay for me: http://live.datatables.net/mucoqig/1/edit. Can you please link to a test case (as requested in the forum rules).
Allan
I think this was due to me using and outdated version of jQuery.
I set up a fiddle and it's working there but not when i run it in visual studio, so doubt anyone can help me with this
http://jsfiddle.net/brogers/LEGrF/2/
What version of DataTables are you using in Visual Studio? I'm guessing an old version...
Allan
1.9.4
I just upgraded to 1.10.0 and all the filtering and search and paging is gone. I'm using jQuery 1.11.0
That would do it... The legacy documentation is here: http://legacy.datatables.net .