Colspan Issues

Colspan Issues

christouphhchristouphh Posts: 1Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Hi,

I'm using the datable 1.9.4 and I'm encountering a problem with width of table.

This post (http://datatables.net/forums/discussion/7740/row-header-issues/p1) is almost the same, but I already used width:100% and it did not solved my problem.

I think the problem is caused by colspan I have a table with "complex header".
If I comment the first line '' of the '' which contain the colspan the table is well resized.
I also check the number of columns with colspan, and I'm good, there 8 columns.

Whatever width I set (100%, 55%) , DataTable transform it into pixel (100px, 55px).

I can fix the problem by changing width manualy thanks to $('#client_list_locations').css('width', '100%');

Here is the link to my debug log : http://debug.datatables.net/ocobuz (Problem located in the last table).
And a screenshot of actual display and expected display : http://imageshack.us/photo/my-images/819/sanstitreoru.png/

Maybe It's just malformed html.

Thank for any help

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    You need to call fnAdjustColumnSizing when you make the table visible. See for more information: http://datatables.net/release-datatables/examples/api/tabs_and_scrolling.html

    Allan
This discussion has been closed.