Multiple Headers: Filter enabled with Sort Disabled

Multiple Headers: Filter enabled with Sort Disabled

virtualeyesvirtualeyes Posts: 3Questions: 0Answers: 0
edited September 2013 in DataTables 1.9
Hi, thanks for this most excellent library.

Problem:
have a datatable with multiple headers that span multiple columns (4 cols) and am unable to get filter working on data columns.

I can disable sorting with:
bSort: false

but filter functionality appears to be broken, presumably due to the headers spanning multiple columns.

Can we have multiple header rows with filterable data?

Thanks for clues.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Each column in a DataTable _must_ has a unique header cell (i.e. a cell with no colspan). This is a limitation that I will try to resolve in a future revision.

    Allan
  • virtualeyesvirtualeyes Posts: 3Questions: 0Answers: 0
    Allan thanks, a definite nice-to-have.

    I actually can break the headers out into matching columns; in fact, I tried that, but filter functionality still does not work.

    Suspect the issue is that perhaps the library is unable to filter/collapse a single datatable with multiple separate header rows.

    What would work is to have a single datatable per header row and corresponding filter input field, but that's far less elegant than a single filter input being able to drill down through multiple header rows and corresponding data.

    I'll live regardless ;-)
This discussion has been closed.