Datatables colspan
Datatables colspan
sallama
Posts: 1Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
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