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

tschmittschmit 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

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,949

    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

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    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

  • tschmittschmit Posts: 8Questions: 4Answers: 0

    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 ?

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    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

  • tschmittschmit Posts: 8Questions: 4Answers: 0
    edited May 13

    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 ?:

Sign In or Register to comment.