I found a solution to resize table's columns in stackoverflow
jQuery UI Resize with table and colspans
I'm trying to apply it to a datatable that is populated using server side processing, but datatable doesn't allow change the column width.
I have tried this http://jsfiddle.net/BlackSRC/JvELx/2/
I have this simple datatable
<table id="datatable-1" class="table table-hover" style="width: 100%">
</table>
My datatable initialization is:
$(table).DataTable({
'lengthMenu': [[10, 25, 50, 100], [10, 25, 50, 100]],
'ordering': false,
'processing': true,
'serverSide': true,
'dom': 'Blfrtip',
'ajax': {
'url': 'ajax.php',
'type': 'GET'
},
'columns':[
{'data': 'id', 'title': 'Id'},
{'data': 'A', 'title': 'A'},
{'data': 'B', 'title': 'C'},
{'data': 'C', 'title': 'D'},
{'data': 'D', 'title': 'E'}
]
});
Anyone know how can resize column using datatables.js?