Datatables headers not full width on page loadBootstrap table not aligned until resize of windowjQuery datatable headers are not taking full widthHow to suppress table headers completely in jQuery DataTables?jQuery Datatables Header Misaligned With Vertical Scrollingdatatable jquery - table header width not aligned with body widthData tables fixed header in bootstrap modal not workingDataTables - fixed columns widths across pagesDatatables .row() not working on reopening in bootstrap modaljQuery datatable headers are not taking full widthDatatable isn't full widthFooter is Not Fit to Datatables Jquery After First Load
What is the chance of getting a Red Cabbage in year 1?
Padding a column of lists
apt-file regex: find multiple packages at once using or
Is the net torque changed when a partner on a seesaw stands or hangs from her end instead of sitting?
Moscow SVO airport, how to avoid scam taxis without pre-booking?
Doubt about a particular point of view on how to do character creation
How to differentiate between two people with the same name in a story?
Unreadable lines of Milnor's book
Break down the phrase "shitsurei shinakereba naranaindesu"
Ideas behind the 8.Bd3 line in the 4.Ng5 Two Knights Defense
Should a TA point out a professor's mistake while attending their lecture?
How to load files as a quickfix window at start-up
Can authors email you PDFs of their textbook for free?
awk print conditions
Does the Freedom of Movement spell prevent petrification by the Flesh to Stone spell?
Is this statement about a motion being simple harmonic in nature strong?
Cheap oscilloscope showing 16 MHz square wave
Using font to highlight a god's speech in dialogue
Don't look at what I did there
Can a pet cat attune to a magical item?
Can UV radiation be safe for the skin?
Does using composite keys violate 2NF
Can you use Apple Care+ without any checks (bringing just MacBook)?
Squares inside a square
Datatables headers not full width on page load
Bootstrap table not aligned until resize of windowjQuery datatable headers are not taking full widthHow to suppress table headers completely in jQuery DataTables?jQuery Datatables Header Misaligned With Vertical Scrollingdatatable jquery - table header width not aligned with body widthData tables fixed header in bootstrap modal not workingDataTables - fixed columns widths across pagesDatatables .row() not working on reopening in bootstrap modaljQuery datatable headers are not taking full widthDatatable isn't full widthFooter is Not Fit to Datatables Jquery After First Load
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
When loading my web application page with datatables, the datatable is loaded but the <thead>
row is not full width of the table.
After editing the data, or searching in the datatable search, the header jumps to full width. See picture.
Any solution or workaround for this?
Screenshot of datatable:
My normal datatables are fine, but this one is loaded within a modal.
Code modal:
<!-- Get selected shops modal -->
<div id="SelectedShopsModal" class="infomodal">
<div class="shops-content">
<h2><span class="closeModalSelectedShops">×</span> <?php echo lang('Shops'); ?></h2>
<div class="detailblock">
<table id="DataListTableSelectedShops" class="display" cellspacing="0" width="100%">
<thead>
<th class="OE"><?php echo lang('Shop_No'); ?></th>
<th class="OE"><?php echo lang('Shop_Name'); ?></th>
<th class="OE"><?php echo lang('Shop_District'); ?></th>
</thead>
<tbody>
<?php foreach($selected_shops as $shop)
echo "<tr><td>" . $shop['Shop'] . "</td><td>" . $shop['Name'] . "</td><td>" . $shop['District'] . "</td></tr>";
?>
</tbody>
</table>
<br /><button class="closeBtnSelectedShops btn red"><?php echo lang('Close'); ?></button>
<button class="btn red" onclick="delete_oneshots();"><i class="fa fa-trash" aria-hidden="true"></i> <?php echo lang('Delete_shops'); ?></button>
</div>
</div>
</div>
My javascript that is used in the footer of my page:
//datatable to display all selected shops on detail page
selectedshoptable = $('#DataListTableSelectedShops').DataTable(
"dom": "Bfrtip",
"scrollY": "300px",
"scrollCollapse": true,
"bPaginate": false,
"bInfo" : false,
"fields": [
label: "Shopnr",
name: "Shop"
,
label: "Shopname:",
name: "Name"
,
label: "District",
name: "District"
],
"buttons":[
extend: 'selectAll',
text: '<?php echo lang('Select_all'); ?>',
className: 'btn red'
,
text: '<?php echo lang('Select_none'); ?>',
className: 'btn red',
action: function ()
selectedshoptable.rows().deselect();
],
"language":
"zeroRecords": "<?php echo lang('Nothing_found'); ?>",
"infoEmpty": "<?php echo lang('No_records_available'); ?>",
"search":"<?php echo lang('Search'); ?>",
"buttons": "selectNone": "Select none"
);
javascript datatables header modal-dialog
add a comment |
When loading my web application page with datatables, the datatable is loaded but the <thead>
row is not full width of the table.
After editing the data, or searching in the datatable search, the header jumps to full width. See picture.
Any solution or workaround for this?
Screenshot of datatable:
My normal datatables are fine, but this one is loaded within a modal.
Code modal:
<!-- Get selected shops modal -->
<div id="SelectedShopsModal" class="infomodal">
<div class="shops-content">
<h2><span class="closeModalSelectedShops">×</span> <?php echo lang('Shops'); ?></h2>
<div class="detailblock">
<table id="DataListTableSelectedShops" class="display" cellspacing="0" width="100%">
<thead>
<th class="OE"><?php echo lang('Shop_No'); ?></th>
<th class="OE"><?php echo lang('Shop_Name'); ?></th>
<th class="OE"><?php echo lang('Shop_District'); ?></th>
</thead>
<tbody>
<?php foreach($selected_shops as $shop)
echo "<tr><td>" . $shop['Shop'] . "</td><td>" . $shop['Name'] . "</td><td>" . $shop['District'] . "</td></tr>";
?>
</tbody>
</table>
<br /><button class="closeBtnSelectedShops btn red"><?php echo lang('Close'); ?></button>
<button class="btn red" onclick="delete_oneshots();"><i class="fa fa-trash" aria-hidden="true"></i> <?php echo lang('Delete_shops'); ?></button>
</div>
</div>
</div>
My javascript that is used in the footer of my page:
//datatable to display all selected shops on detail page
selectedshoptable = $('#DataListTableSelectedShops').DataTable(
"dom": "Bfrtip",
"scrollY": "300px",
"scrollCollapse": true,
"bPaginate": false,
"bInfo" : false,
"fields": [
label: "Shopnr",
name: "Shop"
,
label: "Shopname:",
name: "Name"
,
label: "District",
name: "District"
],
"buttons":[
extend: 'selectAll',
text: '<?php echo lang('Select_all'); ?>',
className: 'btn red'
,
text: '<?php echo lang('Select_none'); ?>',
className: 'btn red',
action: function ()
selectedshoptable.rows().deselect();
],
"language":
"zeroRecords": "<?php echo lang('Nothing_found'); ?>",
"infoEmpty": "<?php echo lang('No_records_available'); ?>",
"search":"<?php echo lang('Search'); ?>",
"buttons": "selectNone": "Select none"
);
javascript datatables header modal-dialog
Can you please post your code here?
– David R
Feb 8 '17 at 13:58
Hi David, my codes are added.
– Tim W
Feb 9 '17 at 8:48
add a comment |
When loading my web application page with datatables, the datatable is loaded but the <thead>
row is not full width of the table.
After editing the data, or searching in the datatable search, the header jumps to full width. See picture.
Any solution or workaround for this?
Screenshot of datatable:
My normal datatables are fine, but this one is loaded within a modal.
Code modal:
<!-- Get selected shops modal -->
<div id="SelectedShopsModal" class="infomodal">
<div class="shops-content">
<h2><span class="closeModalSelectedShops">×</span> <?php echo lang('Shops'); ?></h2>
<div class="detailblock">
<table id="DataListTableSelectedShops" class="display" cellspacing="0" width="100%">
<thead>
<th class="OE"><?php echo lang('Shop_No'); ?></th>
<th class="OE"><?php echo lang('Shop_Name'); ?></th>
<th class="OE"><?php echo lang('Shop_District'); ?></th>
</thead>
<tbody>
<?php foreach($selected_shops as $shop)
echo "<tr><td>" . $shop['Shop'] . "</td><td>" . $shop['Name'] . "</td><td>" . $shop['District'] . "</td></tr>";
?>
</tbody>
</table>
<br /><button class="closeBtnSelectedShops btn red"><?php echo lang('Close'); ?></button>
<button class="btn red" onclick="delete_oneshots();"><i class="fa fa-trash" aria-hidden="true"></i> <?php echo lang('Delete_shops'); ?></button>
</div>
</div>
</div>
My javascript that is used in the footer of my page:
//datatable to display all selected shops on detail page
selectedshoptable = $('#DataListTableSelectedShops').DataTable(
"dom": "Bfrtip",
"scrollY": "300px",
"scrollCollapse": true,
"bPaginate": false,
"bInfo" : false,
"fields": [
label: "Shopnr",
name: "Shop"
,
label: "Shopname:",
name: "Name"
,
label: "District",
name: "District"
],
"buttons":[
extend: 'selectAll',
text: '<?php echo lang('Select_all'); ?>',
className: 'btn red'
,
text: '<?php echo lang('Select_none'); ?>',
className: 'btn red',
action: function ()
selectedshoptable.rows().deselect();
],
"language":
"zeroRecords": "<?php echo lang('Nothing_found'); ?>",
"infoEmpty": "<?php echo lang('No_records_available'); ?>",
"search":"<?php echo lang('Search'); ?>",
"buttons": "selectNone": "Select none"
);
javascript datatables header modal-dialog
When loading my web application page with datatables, the datatable is loaded but the <thead>
row is not full width of the table.
After editing the data, or searching in the datatable search, the header jumps to full width. See picture.
Any solution or workaround for this?
Screenshot of datatable:
My normal datatables are fine, but this one is loaded within a modal.
Code modal:
<!-- Get selected shops modal -->
<div id="SelectedShopsModal" class="infomodal">
<div class="shops-content">
<h2><span class="closeModalSelectedShops">×</span> <?php echo lang('Shops'); ?></h2>
<div class="detailblock">
<table id="DataListTableSelectedShops" class="display" cellspacing="0" width="100%">
<thead>
<th class="OE"><?php echo lang('Shop_No'); ?></th>
<th class="OE"><?php echo lang('Shop_Name'); ?></th>
<th class="OE"><?php echo lang('Shop_District'); ?></th>
</thead>
<tbody>
<?php foreach($selected_shops as $shop)
echo "<tr><td>" . $shop['Shop'] . "</td><td>" . $shop['Name'] . "</td><td>" . $shop['District'] . "</td></tr>";
?>
</tbody>
</table>
<br /><button class="closeBtnSelectedShops btn red"><?php echo lang('Close'); ?></button>
<button class="btn red" onclick="delete_oneshots();"><i class="fa fa-trash" aria-hidden="true"></i> <?php echo lang('Delete_shops'); ?></button>
</div>
</div>
</div>
My javascript that is used in the footer of my page:
//datatable to display all selected shops on detail page
selectedshoptable = $('#DataListTableSelectedShops').DataTable(
"dom": "Bfrtip",
"scrollY": "300px",
"scrollCollapse": true,
"bPaginate": false,
"bInfo" : false,
"fields": [
label: "Shopnr",
name: "Shop"
,
label: "Shopname:",
name: "Name"
,
label: "District",
name: "District"
],
"buttons":[
extend: 'selectAll',
text: '<?php echo lang('Select_all'); ?>',
className: 'btn red'
,
text: '<?php echo lang('Select_none'); ?>',
className: 'btn red',
action: function ()
selectedshoptable.rows().deselect();
],
"language":
"zeroRecords": "<?php echo lang('Nothing_found'); ?>",
"infoEmpty": "<?php echo lang('No_records_available'); ?>",
"search":"<?php echo lang('Search'); ?>",
"buttons": "selectNone": "Select none"
);
javascript datatables header modal-dialog
javascript datatables header modal-dialog
edited Feb 11 '17 at 17:03
Gyrocode.com
41.4k9 gold badges87 silver badges128 bronze badges
41.4k9 gold badges87 silver badges128 bronze badges
asked Feb 8 '17 at 13:58
Tim WTim W
231 silver badge6 bronze badges
231 silver badge6 bronze badges
Can you please post your code here?
– David R
Feb 8 '17 at 13:58
Hi David, my codes are added.
– Tim W
Feb 9 '17 at 8:48
add a comment |
Can you please post your code here?
– David R
Feb 8 '17 at 13:58
Hi David, my codes are added.
– Tim W
Feb 9 '17 at 8:48
Can you please post your code here?
– David R
Feb 8 '17 at 13:58
Can you please post your code here?
– David R
Feb 8 '17 at 13:58
Hi David, my codes are added.
– Tim W
Feb 9 '17 at 8:48
Hi David, my codes are added.
– Tim W
Feb 9 '17 at 8:48
add a comment |
1 Answer
1
active
oldest
votes
CAUSE
Your table is hidden initially which prevents jQuery DataTables from adjusting column widths.
SOLUTION
If table is in the collapsible element, you need to adjust headers when collapsible element becomes visible.
For example, for Bootstrap Collapse plugin:
$('#myCollapsible').on('shown.bs.collapse', function ()
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
);If table is in the tab, you need to adjust headers when tab becomes visible.
For example, for Bootstrap Tab plugin:
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e)
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
);
Code above adjusts column widths for all tables on the page. See columns().adjust()
API methods for more information.
RESPONSIVE, SCROLLER OR FIXEDCOLUMNS EXTENSIONS
If you're using Responsive, Scroller or FixedColumns extensions, you need to use additional API methods to solve this problem.
If you're using Responsive extension, you need to call
responsive.recalc()
API method in addition tocolumns().adjust()
API method. See Responsive extension – Incorrect breakpoints example.If you're using Scroller extension, you need to call
scroller.measure()
API method instead ofcolumns().adjust()
API method. See Scroller extension – Incorrect column widths or missing data example.If you're using FixedColumns extension, you need to call
fixedColumns().relayout()
API method in addition tocolumns().adjust()
API method. See FixedColumns extension – Incorrect column widths example.
LINKS
See jQuery DataTables – Column width issues with Bootstrap tabs for solutions to the most common problems with columns in jQuery DataTables when table is initially hidden.
2
Thanks for your answer. I added selectedshoptable.columns.adjust(); to the JS function of my modal and it works fine.
– Tim W
Feb 13 '17 at 10:23
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f42115118%2fdatatables-headers-not-full-width-on-page-load%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
CAUSE
Your table is hidden initially which prevents jQuery DataTables from adjusting column widths.
SOLUTION
If table is in the collapsible element, you need to adjust headers when collapsible element becomes visible.
For example, for Bootstrap Collapse plugin:
$('#myCollapsible').on('shown.bs.collapse', function ()
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
);If table is in the tab, you need to adjust headers when tab becomes visible.
For example, for Bootstrap Tab plugin:
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e)
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
);
Code above adjusts column widths for all tables on the page. See columns().adjust()
API methods for more information.
RESPONSIVE, SCROLLER OR FIXEDCOLUMNS EXTENSIONS
If you're using Responsive, Scroller or FixedColumns extensions, you need to use additional API methods to solve this problem.
If you're using Responsive extension, you need to call
responsive.recalc()
API method in addition tocolumns().adjust()
API method. See Responsive extension – Incorrect breakpoints example.If you're using Scroller extension, you need to call
scroller.measure()
API method instead ofcolumns().adjust()
API method. See Scroller extension – Incorrect column widths or missing data example.If you're using FixedColumns extension, you need to call
fixedColumns().relayout()
API method in addition tocolumns().adjust()
API method. See FixedColumns extension – Incorrect column widths example.
LINKS
See jQuery DataTables – Column width issues with Bootstrap tabs for solutions to the most common problems with columns in jQuery DataTables when table is initially hidden.
2
Thanks for your answer. I added selectedshoptable.columns.adjust(); to the JS function of my modal and it works fine.
– Tim W
Feb 13 '17 at 10:23
add a comment |
CAUSE
Your table is hidden initially which prevents jQuery DataTables from adjusting column widths.
SOLUTION
If table is in the collapsible element, you need to adjust headers when collapsible element becomes visible.
For example, for Bootstrap Collapse plugin:
$('#myCollapsible').on('shown.bs.collapse', function ()
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
);If table is in the tab, you need to adjust headers when tab becomes visible.
For example, for Bootstrap Tab plugin:
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e)
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
);
Code above adjusts column widths for all tables on the page. See columns().adjust()
API methods for more information.
RESPONSIVE, SCROLLER OR FIXEDCOLUMNS EXTENSIONS
If you're using Responsive, Scroller or FixedColumns extensions, you need to use additional API methods to solve this problem.
If you're using Responsive extension, you need to call
responsive.recalc()
API method in addition tocolumns().adjust()
API method. See Responsive extension – Incorrect breakpoints example.If you're using Scroller extension, you need to call
scroller.measure()
API method instead ofcolumns().adjust()
API method. See Scroller extension – Incorrect column widths or missing data example.If you're using FixedColumns extension, you need to call
fixedColumns().relayout()
API method in addition tocolumns().adjust()
API method. See FixedColumns extension – Incorrect column widths example.
LINKS
See jQuery DataTables – Column width issues with Bootstrap tabs for solutions to the most common problems with columns in jQuery DataTables when table is initially hidden.
2
Thanks for your answer. I added selectedshoptable.columns.adjust(); to the JS function of my modal and it works fine.
– Tim W
Feb 13 '17 at 10:23
add a comment |
CAUSE
Your table is hidden initially which prevents jQuery DataTables from adjusting column widths.
SOLUTION
If table is in the collapsible element, you need to adjust headers when collapsible element becomes visible.
For example, for Bootstrap Collapse plugin:
$('#myCollapsible').on('shown.bs.collapse', function ()
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
);If table is in the tab, you need to adjust headers when tab becomes visible.
For example, for Bootstrap Tab plugin:
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e)
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
);
Code above adjusts column widths for all tables on the page. See columns().adjust()
API methods for more information.
RESPONSIVE, SCROLLER OR FIXEDCOLUMNS EXTENSIONS
If you're using Responsive, Scroller or FixedColumns extensions, you need to use additional API methods to solve this problem.
If you're using Responsive extension, you need to call
responsive.recalc()
API method in addition tocolumns().adjust()
API method. See Responsive extension – Incorrect breakpoints example.If you're using Scroller extension, you need to call
scroller.measure()
API method instead ofcolumns().adjust()
API method. See Scroller extension – Incorrect column widths or missing data example.If you're using FixedColumns extension, you need to call
fixedColumns().relayout()
API method in addition tocolumns().adjust()
API method. See FixedColumns extension – Incorrect column widths example.
LINKS
See jQuery DataTables – Column width issues with Bootstrap tabs for solutions to the most common problems with columns in jQuery DataTables when table is initially hidden.
CAUSE
Your table is hidden initially which prevents jQuery DataTables from adjusting column widths.
SOLUTION
If table is in the collapsible element, you need to adjust headers when collapsible element becomes visible.
For example, for Bootstrap Collapse plugin:
$('#myCollapsible').on('shown.bs.collapse', function ()
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
);If table is in the tab, you need to adjust headers when tab becomes visible.
For example, for Bootstrap Tab plugin:
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e)
$($.fn.dataTable.tables(true)).DataTable()
.columns.adjust();
);
Code above adjusts column widths for all tables on the page. See columns().adjust()
API methods for more information.
RESPONSIVE, SCROLLER OR FIXEDCOLUMNS EXTENSIONS
If you're using Responsive, Scroller or FixedColumns extensions, you need to use additional API methods to solve this problem.
If you're using Responsive extension, you need to call
responsive.recalc()
API method in addition tocolumns().adjust()
API method. See Responsive extension – Incorrect breakpoints example.If you're using Scroller extension, you need to call
scroller.measure()
API method instead ofcolumns().adjust()
API method. See Scroller extension – Incorrect column widths or missing data example.If you're using FixedColumns extension, you need to call
fixedColumns().relayout()
API method in addition tocolumns().adjust()
API method. See FixedColumns extension – Incorrect column widths example.
LINKS
See jQuery DataTables – Column width issues with Bootstrap tabs for solutions to the most common problems with columns in jQuery DataTables when table is initially hidden.
edited Mar 28 at 10:22
answered Feb 11 '17 at 17:08
Gyrocode.comGyrocode.com
41.4k9 gold badges87 silver badges128 bronze badges
41.4k9 gold badges87 silver badges128 bronze badges
2
Thanks for your answer. I added selectedshoptable.columns.adjust(); to the JS function of my modal and it works fine.
– Tim W
Feb 13 '17 at 10:23
add a comment |
2
Thanks for your answer. I added selectedshoptable.columns.adjust(); to the JS function of my modal and it works fine.
– Tim W
Feb 13 '17 at 10:23
2
2
Thanks for your answer. I added selectedshoptable.columns.adjust(); to the JS function of my modal and it works fine.
– Tim W
Feb 13 '17 at 10:23
Thanks for your answer. I added selectedshoptable.columns.adjust(); to the JS function of my modal and it works fine.
– Tim W
Feb 13 '17 at 10:23
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f42115118%2fdatatables-headers-not-full-width-on-page-load%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you please post your code here?
– David R
Feb 8 '17 at 13:58
Hi David, my codes are added.
– Tim W
Feb 9 '17 at 8:48