How to Force Specific Column Widths by Number of characters.
How to Force Specific Column Widths by Number of characters.
infantheartlyjes
Posts: 9Questions: 0Answers: 0
I want to set the width of datatable columns based on the Maximum number of characters assigned for the column. Here in this example the Column width is set by percentage of the table width. I want to change it character wise.
[code]
$('#example').dataTable( {
"bAutoWidth": false,
"aoColumns": [{"sWidth":"60%"},{"sWidth":"20%"},{"sWidth":"20%"}]
} );
[/code]
[code]
$('#example').dataTable( {
"bAutoWidth": false,
"aoColumns": [{"sWidth":"60%"},{"sWidth":"20%"},{"sWidth":"20%"}]
} );
[/code]
This discussion has been closed.