Print two headers

Print two headers

250R250R Posts: 1Questions: 1Answers: 0

Hello,

I have two rows as header, but when click button 'Print', only the botton header appear in preview. How to display two header when print ?

                    <thead>
                    <tr>
                        <th rowspan="2" class="text-center">Warehouse</th>
                        <th rowspan="2" class="text-center">Spare Part</th>
                        <th rowspan="2" class="text-center">Part No</th>
                        <th colspan="2" class="text-center">Beginning Stock</th>
                        <th colspan="2" class="text-center">Purchase</th>
                        <th colspan="2" class="text-center">Service/Maintenance</th>
                        <th colspan="2" class="text-center">Ending Stock</th>
                    </tr>
                    <tr>
                        <th class="text-center">Qty</th>
                        <th class="text-center">Amount</th>
                        <th class="text-center">Qty</th>
                        <th class="text-center">Amount</th>
                        <th class="text-center">Qty</th>
                        <th class="text-center">Amount</th>
                        <th class="text-center">Qty</th>
                        <th class="text-center">Amount</th>
                    </tr>
                    </thead>

Answers

  • allanallan Posts: 63,892Questions: 1Answers: 10,530 Site admin

    Unfortunately no, at this time complex headers are not supported by any of the export options. It is something I hope to address in future, particularly for the print view.

    Allan

  • dk135dk135 Posts: 2Questions: 0Answers: 0

    Any timeline when this feature can be implemented, or can I take part to try implement it?

  • allanallan Posts: 63,892Questions: 1Answers: 10,530 Site admin

    I'm working on other features at the moment, so my current best guess is "sometime later this year" I'm afraid.

    I don't actually even know how I want to go about doing it since I want a proper public API in DataTables for it... I'm afraid I haven't planned that aspect out yet.

    Allan

  • dk135dk135 Posts: 2Questions: 0Answers: 0

    Hi @allan

    I might able to help implement this for print. I'll sent pull request in github when I'm finished.

This discussion has been closed.