WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] Fix 2nd row when sorting, searching, etc? (6 posts)

  1. cparodi7
    Member
    Posted 2 years ago #

    Hi, first off, great plugin.

    I tried to find a solution on the datatables website but couldn't figure out how to make it work with the plugin. Is there a way to fix the 2nd row (row after the header) so it doesn't disappear when you search or click the column headers to resort?

    Thanks,
    Patrick

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Patrick,

    thanks for your question.

    Unfortunately, I'm not aware of a solution to this. And searching on the DataTables website is the correct place, as such a functionality would have to implemented via DataTables.

    Best wishes,
    Tobias

  3. cparodi7
    Member
    Posted 2 years ago #

    Hi Tobias,

    Thanks for the reply. The closest I could find on the DataTables site is the following:
    http://datatables.net/forums/discussion/6956/fixedcolumns-fixedheader-and-the-first-row/p1

    Ah I see - you want to freeze the first row of the table's body in place? That isn't currently functionality that FixedColumns provides. What you can do though is just have two rows in your header, which would create that same effect :-)

    Do you know how I could create a 2nd header row via the plugin?

    Thanks again for the help,
    Patrick

  4. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Patrick,

    creating a second header row is not possible via the plugin interface at this time, sorry.
    You could however try it by entering HTML code for a second row into the last cell of the (first) header row:

    First row, last cell</th></tr><tr><th>Second row, first cell</th><th>Second row, second cell</th><th>Second row, third cell</th><th>Second row, last cell

    This is a bit ugly, but it might be enough to do what you want to achieve.

    Regards,
    Tobias

  5. cparodi7
    Member
    Posted 2 years ago #

    That worked perfectly, thanks!

  6. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    awesome, very cool :-) Thanks for the confirmation!

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic