overall table full-width, actual data skinny
overall table full-width, actual data skinny
bimargulies
Posts: 13Questions: 0Answers: 0
The paging and searching bars on my table are the full width of the containing area, but the actual data rows are narrower, and the data in the cells is wrapped as a result. The data comes in as json, and the third column shows up as a complex data structure which is displayed elsewhere when the user pushes a button which I render into the column in a callback.
[code]
Document ID
Score
Metadata ...
[/code]
[code]
$('#results').dataTable({
"bJQueryUI" : true,
"bSort": false,
"bPaginate": true,
"aoColumnDefs" : [ {
"fnRender" : function(oObj) {
return "Metadata ..."; // to be replaced by a button later.
},
"sClass": "metadata-cell",
"aTargets" : [ 'metadata' ]
} ]
});
[/code]
[code]
Document ID
Score
Metadata ...
[/code]
[code]
$('#results').dataTable({
"bJQueryUI" : true,
"bSort": false,
"bPaginate": true,
"aoColumnDefs" : [ {
"fnRender" : function(oObj) {
return "Metadata ..."; // to be replaced by a button later.
},
"sClass": "metadata-cell",
"aTargets" : [ 'metadata' ]
} ]
});
[/code]
This discussion has been closed.
Replies
[code]
#query-results {
width: 100%;
}
[/code]
to your CSS that should do it. Equally you could add style="width:100%" to the table tag and that would do it as well.
Regards,
Allan
More notes in a moment.
......
I found that #wrapper {width:100%} doesn't work, but #real_data {width:100%} works.
Still many thanks!