Table header width issue (likely simple).
Table header width issue (likely simple).
The issue that I'm having is that although the table width is 100% the the widths are fixed. They don't update with window resize, or take up anything close to the roughly 700px it has.
The Initial table is
[code]
[/code]
Which is initialized with
[code]
var oTable = $('#productTable').dataTable({
"sPaginationType": "bootstrap",
"bServerSide": true,
"bAutoWidth:": true,
"sAjaxSource": "/api/products/list/aadata/.json",
"aoColumns": [
{ "mDataProp": "formattedcode", "sTitle": "Product Code" },
{ "mDataProp": "description", "sTitle": "Description"},
{ "mDataProp": "storeinventory", "sTitle": "In Store"},
{ "mDataProp": "totalinventory", "sTitle": "Total"},
],
"fnInitComplete": function() {
this.fnAdjustColumnSizing(true);
},
})
[/code]
Which becomes:
[code]
Product Code
Description
In Store
Total
...
[/code]
Thanks in advance,
PJ
The Initial table is
[code]
[/code]
Which is initialized with
[code]
var oTable = $('#productTable').dataTable({
"sPaginationType": "bootstrap",
"bServerSide": true,
"bAutoWidth:": true,
"sAjaxSource": "/api/products/list/aadata/.json",
"aoColumns": [
{ "mDataProp": "formattedcode", "sTitle": "Product Code" },
{ "mDataProp": "description", "sTitle": "Description"},
{ "mDataProp": "storeinventory", "sTitle": "In Store"},
{ "mDataProp": "totalinventory", "sTitle": "Total"},
],
"fnInitComplete": function() {
this.fnAdjustColumnSizing(true);
},
})
[/code]
Which becomes:
[code]
Product Code
Description
In Store
Total
...
[/code]
Thanks in advance,
PJ
This discussion has been closed.
Replies
Allan
Thank you so much, the software is excellent!
edit: Literally, other than the JSON that's what it is, I'll try to put something together.
Cheers,
PJ
Allan