Colspan changes from colspan="3" to colspan="2" once JS kicks in...

Colspan changes from colspan="3" to colspan="2" once JS kicks in...

buildakickerbuildakicker Posts: 7Questions: 1Answers: 0
edited June 2013 in DataTables 1.9
HI, I have a a large table with 2600+ entries. I am using the wonderful header sorting features. I have it setup like so:
[code]



ROAD

MILES

BENEFIT

RISK

RECOMMENDATION



VEG

FIRE

SOCIAL

WATERSHED

WILDLIFE


[/code]

Once the page renders in IE, FF and Chrome it changes to (using Firebug... the view source still looks correct):

[code]




BENEFIT
RISK









[/code]

You can see that VEG is missing...

Any thoughts? Am I missing something?

Link to page with issue: http://www.fs.usda.gov/detailfull/plumas/home/?cid=stelprdb5424381&width=full

Replies

  • allanallan Posts: 63,383Questions: 1Answers: 10,449 Site admin
    > You can see that VEG is missing...

    It "Fire" that is missing when I load the page, but that's because you have:

    [/code]
    "aoColumnDefs": [
    { "bVisible": false, "aTargets": [3] }
    ]
    [/code]

    So the colspan is reduced from 3 to 2 because you've got a hidden column. If you don't want the column hidden, don't hide it ;-)

    Regards,
    Allan
This discussion has been closed.