Two rows in thead, first row for sorting, second row for column filtering

Two rows in thead, first row for sorting, second row for column filtering

mgmg Posts: 47Questions: 0Answers: 0
edited March 2012 in DataTables 1.9
In version 1.7x, I used to be able to have a table with a two row column header, where sorting
was done in the top row, and included the column name, and filtering with inputs and selects
was done in the second row. A sample structure follows:
[code]



Col 1
Col 2
Col 3







...
[/code]

WIth 1.9, the sortable header is getting applied to the second row instead of the first row.
Can anyone please provide a hint as to why this would no longer work properly in 1.9?

Replies

  • allanallan Posts: 61,710Questions: 1Answers: 10,103 Site admin
    http://datatables.net/upgrade/1.8 - you can use the bSortCellsTop option to apply the sort listener to the top cells in a column.

    Allan
  • mgmg Posts: 47Questions: 0Answers: 0
    Got it. Thanks a bunch for pointing that out.

    As an aside: I recall seeing the reference page before, but wasn't finding it.

    http://datatables.net/ref

    Maybe there is already a link in the main documentation, and I wasn't finding it,
    or maybe it could be put in a more conspicuous location?
This discussion has been closed.