complex header

complex header

smassotsmassot Posts: 28Questions: 9Answers: 1
edited September 2015 in DataTables 1.10

Hello,
is there a way to render a datatable like this please ?

Row_Id0
------------------------------------------------------------------------------
Title : { data.row[0] } (global header row TH colspan=x)
------------------------------------------------------------------------------
name | fonction | email (individual header TH row)
------------------------------------------------------------------------------
data.row[1] | data.row[2] | data.row[3] (data detail)
------------------------------------------------------------------------------

Row_Id1
------------------------------------------------------------------------------
Title : { data.row[0] }
------------------------------------------------------------------------------
name | fonction | email
------------------------------------------------------------------------------
data.row[1] | data.row[2] | data.row[3]
------------------------------------------------------------------------------

thanks a lot for your answer.

Replies

  • allanallan Posts: 63,696Questions: 1Answers: 10,500 Site admin

    Currently no - sorry.

    Allan

  • ThomDThomD Posts: 334Questions: 11Answers: 43

    Couldn't the .child() method be used to build that sort of presentation? Then one would need to force .child().show on .draw() Messy, but it could work.

  • allanallan Posts: 63,696Questions: 1Answers: 10,500 Site admin

    Possibly... I've seen it done for just two rows before, but what makes me hesitate in this case is that it looks like either 4 rows per record or an individual table per record (I'm not sure which).

    Allan

This discussion has been closed.