sPaginationType : bootstrap doesnt work

sPaginationType : bootstrap doesnt work

JugramJugram Posts: 10Questions: 0Answers: 0
edited May 2013 in General
Hello,

I am trying to use sPaginationType as bootstrap but adding this fails initialization of datatable and i get nothing. If i take sPaginationType out, i works using two_button but i want to use bootstrap because of our website design. I used javascript for bootstrap from http://www.datatables.net/blog/Twitter_Bootstrap_2

Has anyone used bootstrap for pagination? if yes, can you please guide where i can go wrong?

Any help will be appreciated.

Thanks

Jugram

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Link to a test page showing the problem please. As you can see on the blog post page that you linked to, it should work...

    Also I'd suggest you use the Javascript and CSS here: https://github.com/DataTables/Plugins/tree/master/integration/bootstrap

    Allan
  • JugramJugram Posts: 10Questions: 0Answers: 0
    edited May 2013
    Thanks everything works now.

    I really got struck in very stupid problem (with my minimal knowledge of jquery) and the reason it was not working was because in jquery.datatable.js you use 'DataTable.ext' to extend or attach any behaviour to datatable but in bootstrap file it was '$.fn.dataTableExt', it took me couple of hours with hit and trail to figure this out, but again, i am not atall good in jquery.

    Anyway, this tools really rocks.
This discussion has been closed.