migration from 1.10 to 2, header resizing with ajax loading of data
migration from 1.10 to 2, header resizing with ajax loading of data
tschmit
Posts: 8Questions: 4Answers: 0
scrollx is enabled, all was fine with 1.10.
I'm trying to migrate and have the following problem:
first load:
then I search something else and:
I tried to use columns.adjust, but it doesn't work.
I think the problem is the growing of the title column, but why the table doesn't adapt as it used to do ?
Any idea is welcome.
This question has an accepted answers - jump to answer
Answers
The columns aren't aligned with the header either. Typically this means that the style integration files for the style framework being used haven't been loaded. Use the Download Builder to make sure you have all the correct files.
Also since you have upgraded make sure you have removed all references to the old Datatables versions. Otherwise you could have a style conflict.
Make sure you have
style="width:100%"
on the -table
tag as shown in this example.If the table is hidden when initialized then use
columns.adjust()
after it becomes visible. See thi sBS tabs example.If you still need help then please post a link to a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
There is an issue with column alignment in a scrolling table with DataTables 2.0.6. .5 didn't have the issue - I unforunately added it... .7 will be released tomorrow with the fix. Might be worth trying 2.0.5 to see if that helps.
Allan
I can wait for the fix thank you .
In the meantime how can I download 2.0.5 (I used to download the file). Is the only way to forge an CDN url ?
Some say forge, others say edit... It's all a matter of perspective .
Yes, just tweak the CDN url and that should do the job.
I've got one more fix I want to put in for .7 and then I'll release it. Expecting that to be later today.
Allan
thank you for the (very quick) update (cols are now aligned)
sorry for the wrong use of "forge".
I think there is still a "problem/different behavior compared to version 1.1x" with scrolling table: an "unsightly" border-bottom:
coming from:
may be it would be better on the inner table ?: