Hi,
thanks for your question, and sorry for the trouble.
Unfortunately, I don’t think that this is possible in an easy way, sorry. The DataTables JS library somehow supports this with custom renderers or similar, but as I have never done this myself, I can’t really help with it. You will likely have to find a custom solution based on the API functions of the external DataTables JavaScript API from https://www.datatables.net/
Regards,
Tobias
HI Tobias,
Thanks for the link, this is actually what am looking for https://datatables.net/examples/basic_init/complex_header.html but am not sure on how to implement. My table is exactly like that without the sorting and I need to add the sorting. Any ideas or online tutorials.
Thanks.
Hi,
thanks for the clarification. Unfortunately, this can not yet be achieved with TablePress, as TablePress only supports one header row, while the approach needs two 🙁
I can therefore only suggest that you do this manually, i.e. copy/paste the current HTML into a page and adjust it to have two header rows, and then manually load the DataTables JS library on that, by adding the relevant JavaScript directly into the page.
Regards,
Tobias
Thanks Tobias,
Will let you know how it goes…
Hi,
sure, no problem! Sorry that I could not provide a direct solution here.
Best wishes,
Tobias