Column width Resizes automatically after re-initialization
Column width Resizes automatically after re-initialization
Hi everyone ,
I have been using datatable for my project since 2015 , It has worked wonders in managing client side data
Currently I am stuck in one issue of column width re-sizing
I first initialize my datatable using ajax service request and I have one button which destroys the datatable initially created and recreate with same data. My column header remain's same only the data is getting updated ( old records + new records ) . In this process the column width is increasing every time i click adding more and more space within the columns.
code
$('#mytable").dataTable({
data: myaaray,
"aaSorting": [],
"columns": mycolumns,
"columnDefs": mycolumnsdef,
"destroy": true
});
Thanks in advance