DataTable Header Issue on a Wizard plugin
DataTable Header Issue on a Wizard plugin
jimboy
Posts: 20Questions: 9Answers: 0
I have this datatable header issue if it is on a responsive layout.
The header only breaks if I set dom: 'frltip', scrollX: true and if the datatable is under a Wizard panel which is jQuery Smart Wizard.
You can see the demo here fiddler http://jsfiddle.net/UvjnT/2274/ , the datatable is on step-2 of the wizard.
Any help is much appreciated.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Don't use that
dom
string with Bootstrap styling. Bootstrap needs a more complex value, since it uses a grid system. The documentation fordom
shows the default used for Bootstrap, which you can modify as you need.Allan
Hi Allan,
I define the the dom with bootstrap styling below but all of the control elements are on the top.
My aim was to put on top the "dataTables_filter" (aligned left) and "dataTables_length" (aligned right), which works using dom: frltip with a little css help (text-align), while at the bottom are the info (aligned left) and paging (aligned right).
Also, another issue on small screens where the filter and length overlaps each other.
Thanks,
I tried this one but still the header is not aligned with the columns.
$('.dataTables_scrollHeadInner, .dataTables_scrollHeadInner table').width("100%");
Any thoughts?
Thanks,
Still don't use the
dom
option like that. The documentation shows that this is the default for Bootstrap:Yours should look similar.
What is it about the default that you want to change?
Allan
Thanks Allan, it works!