• Resolved cgc-mike

    (@cgc-mike)


    First of all thanks for answering a previous question and I think TablePress is great!

    However….

    When I click the following ….Use the following features of the DataTables JavaScript library with this table:

    It removes the css styling for the odd and even row colours and the table has a white background. When I refresh the page I can see the colours briefly then it covers over in white. When I uncheck the box the colours are back.

    Any suggestions, am I doing something wrong?

    Thanks

    Mike

    http://wordpress.org/extend/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Mike,

    thanks for your question, and sorry for the trouble.

    The reason for this problem is most likely a JavaScript conflict, that stops the execution of the DataTables JS library in the middle of processing the alternating row colors.
    To find out what exactly is causing this, I’d need to take a look at your table. Therefore, please post a link to the page with the table. Thanks!

    Regards,
    Tobias

    Thread Starter cgc-mike

    (@cgc-mike)

    Hi Tobias

    Thanks for coming back so quickliy.

    http://carngerrishcreative.info/sba_dev/clubs-2/

    I have made a copy of the table and added under the original table.

    The first table has the JS Library turned on, the second table has it turned off. As you can see the first table does not display the odd and even bg colour (set to the same colour in this case)

    Regards
    Mike

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Mike,

    thanks for the link.

    The reason for this problem is the usage of “colspan” in this table. Unfortunately, the DataTables JavaScript library does not support tables that use this to combine cells.
    You will therefore either have to remove all #colspan# and #rowspan# from the table, or turn of the usage of the DataTables library.

    Sorry for not having better news.

    Regards,
    Tobias

    Thread Starter cgc-mike

    (@cgc-mike)

    Hi Tobias

    Thanks for solving this, at least if I know what is possible and what is not, then I can design accordingly.

    Best regards

    Mike

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem! From what I know, combined cells would cause a lot of extra work for the DataTables JS library, so that the developer can not add support for it at this time.

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘DataTables JavaScript option removes table bg colours’ is closed to new replies.