Table in td

Table in td

FletcherFletcher Posts: 2Questions: 1Answers: 0

Hello,
I created table like this:

<table> <thead> <tr role="row"> <th >Col 1</th> <th >Col 2</th> <th >Col 3</th> <th >Col 4</th> </tr> </thead> <tbody> <tr > <td >Value Col 1</td> <td> <table> <thead> <tr> <th>Col 2 SubCol 1</th> <th>Col 2 SubCol 2</th> <th>Col 2 SubCol 3</th> <th>Col 2 SubCol 4</th> <th>Col 2 SubCol 5</th> <th>Col 2 SubCol 6</th> </tr> </thead> <tbody> <tr> <td>Value Col 2 SubCol 1</td> <td> <table> <tbody> <tr> <td>Value Col 2 SubCol 2 1</td> </tr> <tr> <td>Value Col 2 SubCol 2 2</td> </tr> <tr> <td>Value Col 2 SubCol 2 3</td> </tr> </tbody> </table> </td> <td> <table> <tbody> <tr> <td>Value Col 2 SubCol 3 1</td> </tr> <tr> <td>Value Col 2 SubCol 3 2</td> </tr> <tr> <td>Value Col 2 SubCol 3 3</td> </tr> </tbody> </table> </td> <td> <table> <tbody> <tr> <td>Value Col 2 SubCol 4 1</td> </tr> <tr> <td>Value Col 2 SubCol 4 2</td> </tr> <tr> <td>Value Col 2 SubCol 4 3</td> </tr> </tbody> </table> </td> <td> <table> <tbody> <tr> <td>Value Col 2 SubCol 5 1</td> </tr> <tr> <td>Value Col 2 SubCol 5 2</td> </tr> <tr> <td>Value Col 2 SubCol 5 3</td> </tr> </tbody> </table> </td> <td> <table> <tbody> <tr> <td>Value Col 2 SubCol 6 1</td> </tr> <tr> <td>Value Col 2 SubCol 6 2</td> </tr> <tr> <td>Value Col 2 SubCol 6 3</td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> <td>Value Col 3 SubCol 1</td> <td> <table> <thead> <tr> <th>Col 3 SubCol 1 1</th> <th>Col 3 SubCol 1 2</th> </tr> </thead> <tbody> <tr> <td>Value Col 3 SubCol 1 1</td> <td>Value Col 3 SubCol 1 2</td> </tr> </tbody> </table> </td> </tr> </tbody> </table>

When i export in pdf or csv the tables in td are not displaying correctly.

Is this a bug ? An HTML structure issue ? Is there a fix ?

Thank you for your reply.

Fletcher

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @Fletcher ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • FletcherFletcher Posts: 2Questions: 1Answers: 0

    Hi Colin,
    Thank you for your reply. Here is a link to the test case : http://www.thomjoo.com/Test_DataTable/

    Regards

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @Fletcher ,

    Thanks for that, that helps.

    This thread here might help, it's definitely worth looking at the code in the solution. This is to do with child row - yours isn't a child row, but has a level of complexity that isn't normally expected.

    TableTools was the precursor to the Buttons export - and that type of export wasn't support there, so I suspect the same would be true for the current implementation.

    Cheers,

    Colin

This discussion has been closed.