Tablepress - Tabletool buttons not showing if table contains #colspan

Tablepress - Tabletool buttons not showing if table contains #colspan

bmckraybmckray Posts: 1Questions: 0Answers: 0
edited March 2013 in General
The title says it all. I have used some #colspans in some of my tables on our company intranet site for aesthetics and readability. Most of these tables don't need to be sorted. I do want to allow users/viewers to export the table to a PDF file. Is there a way to get the buttons to show up when there is a #colspan in the table?

Replies

  • allanallan Posts: 63,519Questions: 1Answers: 10,473 Site admin
    So fundamentally in DataTables, the key thing to remember with complex headers is that there _must_ be a unique cell for each column - i.e. each column must have its own cell which uniquely addresses just that column - so sorting and filtering can be applied to it.

    For example this is a valid layout:

    [code]
    +---+---+---+---+
    | | |
    +---+---+---+---+
    | | | | |
    +---+---+---+---+
    [/code]

    while this is not (since the last two are both colspanning).

    [code]
    +---+---+---+---+
    | | | |
    +---+---+---+---+
    | | | |
    +---+---+---+---+
    [/code]

    Also, currently the PDF export option does not support colspan I'm afraid.

    Allan
This discussion has been closed.