New datatable 1.10.7 breaks "bootstrap" pagination type.
New datatable 1.10.7 breaks "bootstrap" pagination type.
Hi all,
Wondering if there is anyone else who has problem initializing boostrap with "boostrap" pagination type on the latest 1.10.7 Datatables.
I managed to replicate the issue on this fiddle link : https://jsfiddle.net/hf5hj0qh/1/
This is a small chunk of the code that I have been using for quite some time to initialize datatable, but it suddenly breaks on the latest update.
Open the developer console to see the error: Uncaught TypeError: Cannot read property 'fnInit' of undefined
Answers
More specifically, if you open the developer console when visiting the fiddle page, you will see "Uncaught TypeError: Cannot read property 'fnInit' of undefined" error.
Don't set the sPaginationType option to
bootstrap
in 1.10+ (updated example).The paging plug-ins were updated in 1.10 to provide renderers so you can use the default built in options of
pagingType
with the Bootstrap styling.Allan
Ran into the same issue when upgrading from 10.5 to 10.7.
had to roll back to 10.5, removing "bootstrap" pagination type totally changed the styling of the pagination control and broke my custom styling. :(