Datatables colspan

Datatables colspan

sallamasallama Posts: 1Questions: 0Answers: 0
edited March 2012 in DataTables 1.9
i am using datatables 1.9
and i need to use td or th colspan with it

for example
[code]

Header For Content 1
Content 1Data 1

Header For Content 2
Content 2Data 2

[/code]

i need to do this how can i do this.

any help will appiricated

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    > i need to use td or th colspan with it

    You can't - DataTables does not currently support colspan or rowspan in the TBODY. The reason for this is that both rows and columns are 100% independent, thus the following equation must be true:

    > rows * columns === cells

    This means that sorting, filtering etc can all be applied (for example how would you sort on data which has a colspan?). The closest you can get at the moment is something like this: http://datatables.net/release-datatables/examples/advanced_init/row_grouping.html

    Regards,
    Allan
This discussion has been closed.