• Resolved borisj

    (@borisj)


    Hi,

    at least in my case there seems to be an issue with the “TablePress Extension: DataTables Buttons” and #colspan#. (haven’t checked #rowspan#)

    The extension does not work in various instances with #colspan#.

    As for the header and footer it is only not working when placing a in a cell of the last column

    • #colspan# in last column cell of the header AND footer: Extension NOT Working
    • #colspan# in last column cell of the footer: Extension Working (with #colspan# in second last cell of the header)
    • #colspan# in last column cell of the header: Extension NOT Working (with #colspan# in second last cell of the footer)

    As for regular rows and cells it does’t matter where I place the #colspan#. The extension doesn’t work.

    I’m not sure if this is a bug or related to my installation (WP 4.9.8, latest versions of TablePress and DataTables Buttons extension, https://kmeducationhub.de). At least there seems to be no Plugin conflict.

    Following the shortcode report of a table

    array (
      'id' => '1',
      'column_widths' => '',
      'alternating_row_colors' => true,
      'row_hover' => true,
      'table_head' => true,
      'table_foot' => true,
      'first_column_th' => false,
      'print_name' => false,
      'print_name_position' => 'above',
      'print_description' => false,
      'print_description_position' => 'above',
      'cache_table_output' => true,
      'convert_line_breaks' => true,
      'extra_css_classes' => 'factsheet',
      'use_datatables' => true,
      'datatables_sort' => false,
      'datatables_paginate' => false,
      'datatables_paginate_entries' => 10,
      'datatables_lengthchange' => false,
      'datatables_filter' => false,
      'datatables_info' => false,
      'datatables_scrollx' => false,
      'datatables_scrolly' => false,
      'datatables_custom_commands' => '',
      'datatables_locale' => 'en_US',
      'show_rows' => '',
      'show_columns' => '',
      'hide_rows' => '',
      'hide_columns' => '',
      'cellspacing' => false,
      'cellpadding' => false,
      'border' => false,
      'shortcode_debug' => true,
      'datatables_buttons' => 'pdf,print',
      'datatables_buttons_technique' => 'flash,html5',
      'html_id' => 'tablepress-1',
      'edit_table_url' => 'https://kmeducationhub.de/wp-admin/admin.php?page=tablepress&action=edit&table_id=1',
    )

    Btw. it would be useful to to tell the useres to check at least “Use DataTables” to make the extension work in the “manual”. (https://tablepress.org/extensions/datatables-buttons/)

    Finally, I would be interested to know if there is a way to place the extension buttons below the table.

    Sunny regards from South-western Germany,
    Boris

    • This topic was modified 5 years, 8 months ago by borisj.
    • This topic was modified 5 years, 8 months ago by borisj.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I’m afraid that this is the expected behavior, I’m really sorry. The DataTables JS library simply doesn’t support tables with combined cells (via colspan or rowspan).
    Please also see https://tablepress.org/faq/js-functions-not-working/ for some more information.
    This is also why the “Use DataTables” checkbox is turned off once you use the “colspan” or “rowspan” buttons on the table’s “Edit” screen. Please also see the “?” button there.

    Regards,
    Tobias

    Thread Starter borisj

    (@borisj)

    Thanks for the immediate reply, Tobias.

    I’m aware of this issue but I got no error message and in some instances it worked with colspan so I thought it might be a bug.

    Boris

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Boris,

    sorry about that ?? I still hope that you can find some other solution for your table.

    Best wishes,
    Tobias

    Thread Starter borisj

    (@borisj)

    No worry, Tobias. Already found a solution. Thanks again, Boris

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Boris,

    great! That’s good to hear!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘DataTables Buttons and #colspan# issue’ is closed to new replies.