• Resolved GreyNomad

    (@greynomad)


    I apologize if this has been asked and answered already, but I can’t spare the time to look through 204 pages of support entries. 🙁

    I’m using #colspan# tags in my table. When I use responsive=collapse in my shortcode I get this error message:

    DataTables warning: table id=tablepress-1 – Requested unknown parameter ‘2’ for row 3. For more information about this error, please see http://datatables.net/tn/4

    If I use flip or scroll, I don’t get the error, so it looks like collapse mode turns DataTables on. Is this required for collapse mode to work? If not, is there any way to turn DataTables off in this mode?

    If it’s a restriction, I can live with scroll mode. There are only a few columns, so smartphone users can rotate their phones and see the whole table.

    ~~ Grey

    https://ww.wp.xz.cn/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Your assumption is correct here. The collapse mode relies on the DataTables JS library and therefore turns it on. Unfortunately, as the DataTables JS library is not compatible with tables that have combined/merged cells (using #colspan#), this will cause error messages here. Ultimately, this unfortunately means that the collapse mode can not be used in such tables.
    You will indeed have to switch to the scroll mode here.

    Regards,
    Tobias

    Thread Starter GreyNomad

    (@greynomad)

    Thanks for the quick response. Scroll mode will work fine for our applicaiton.

    And thanks for an awesome extension!

    ~~ Grey

    Thread Starter GreyNomad

    (@greynomad)

    .

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

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

The topic ‘Responsive plugin DataTables error’ is closed to new replies.