Datatables with different headers and numbers of columns

Datatables with different headers and numbers of columns

racachowracachow Posts: 2Questions: 1Answers: 0

Hello,

Is it possible to do a table with a lot of headers and different numbers of columns, just like that?

I've looked for this in several forums, but I didn't found any solution.

Thanks a lot,

Answers

  • kthorngrenkthorngren Posts: 21,354Questions: 26Answers: 4,955

    Datatables doesn't support that type of table layout. For sorting and searching purposes it requires the a consistent number of cells per row. See the HTML docs for more info.

    Take a look at the RowGroup extension. You could create grouping rows that display the HEADER X and Title 1.... rows. The RowGroup rows are not part of the Datatable but inserted for display purposes.

    Kevin

  • racachowracachow Posts: 2Questions: 1Answers: 0

    Hello Kevin.
    Ok, thanks a lot.

Sign In or Register to comment.