troubles with responsive extension in bootstrap3 (in tabs)
troubles with responsive extension in bootstrap3 (in tabs)
yureckey
Posts: 3Questions: 1Answers: 0
I have a troubles running datatables with responsive extension on a bootstrap3.
It works good in simple container, but when I'm using it in a table in a Tab - it's just doesn't work.
See jsfiddle example with two identical settings for two tables. One is working (upper in simple container) and the other is not (lower, in tab): http://jsfiddle.net/2nrkhcup/1
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
try,
Fiddle here: http://jsfiddle.net/2nrkhcup/3/
Thanks a lot, it works! So, script should create datatable only when tab is activated, not just at startup, got it, did I missed the documentation/sample with info about that or this is just trial-and-error knowledge?
Documentation is here: http://datatables.net/reference/api/destroy()
Documentation is here: http://datatables.net/reference/api/destroy()
Well, turns out some fine-tuning is needed:
http://jsfiddle.net/2nrkhcup/4/
in previous code responsive table was "added" every time user changed tab