• Resolved mamuhaji

    (@mamuhaji)


    Hey Tobias,

    I have designed a table and all works great so far. I would like to add raw sorting from the 2nd raw and am not sure on how to do that as my top raw is the heading raw which is fine.
    Raw 2 has seasons so I would like the sorting element to start from raw 2. The tables aren’t on my live site yet as am still working on them on localhost. Please helppppp. I can email you a screenshot if you’d like.

    https://wordpress.org/plugins/tablepress/

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

    (@tobiasbg)

    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

    Thread Starter mamuhaji

    (@mamuhaji)

    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.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter mamuhaji

    (@mamuhaji)

    Thanks Tobias,
    Will let you know how it goes…

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    sure, no problem! Sorry that I could not provide a direct solution here.

    Best wishes,
    Tobias

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

The topic ‘Row sorting’ is closed to new replies.