Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82436

Headers getting misaligned when loading data with ajax

$
0
0

Hi. I recently ran into an issue with headers being missaligned with the columns below. I have tried most (all?) of the things I have come across on the forum:

table.columns.adjust(); <- no effect

table.DataTable { width: 100% !important; } <-- no effect

autoWidth: false, <-- well, column headers get a fixed size, doesn't really solve the problem.

I'm using Ajax to get the data from the server, so in a desperate move, I decided to copy the result set, put it into a variable, removed the ajax call and used data: testdata. This will fix the issue I am having with the column headers, but it's not really a solution to the overall problem with using an Ajax call to load the data.

Have anyone else come across this issue and have any pointers on how to resolve it?

I did setup a live example, but I have yet to setup any Ajax call on it: https://live.datatables.net/yufifiqu/


Viewing all articles
Browse latest Browse all 82436

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>