jquery - How to make dataTable resized automatically after reloading data? -
when there no data datatable looks :
the last header has small width. after reloading , datatable has last header same width:
but when inspect page last header has larger width :
so how make datatable automatically adjusted in last photo after being reloaded ?
you can added following code blog datatable.js
$(window).on("resize", function () { table.columns.adjust() .responsive.recalc(); }) 


Comments
Post a Comment