How to force the column width

How to force the column width

Thread7Thread7 Posts: 1Questions: 0Answers: 0
edited October 2012 in General
I realize this is a newbie question. I've tried to figure this out on my own but can't find a full example here on the site and I'm not too good with jQuery yet. All I want to do is force one column in my table to be a certain width. My table has 7 columns. I want to set column 0 to 70 pixels. I see that that documentation says this: Change display length; *_length; dataTables_length. But I don't know where to put that statement and how to attach it to the column that I want to change.
I'm assuming I can put it in my initialization function but just don't quite know the correct syntax. Here is my function:
[code]
$(document).ready(function() {
$('#example').dataTable( {
"aoColumns": [
null,
null,
null,
{ "sType": "numeric-comma" },
null,
null,
null
]
} );
$('#example_length')[0] = 70; //I know this isn't right. Just playing with something that might work.
} );
[/code]

Here is a link to the debugger I ran on my table: http://debug.datatables.net/oragip
This discussion has been closed.