Using rowspan for leftmost and/or rightmost columns

Using rowspan for leftmost and/or rightmost columns

slenzi_blumedslenzi_blumed Posts: 2Questions: 0Answers: 0
edited April 2012 in General
Hi All,

I was wondering if there is any way to get DataTables working when designing a table with the leftmost and/or rightmost columns contain cells that uses rowspan. Following the layout that I have in mind:
[code]
| 01/2012 | 02/2012 |
----|---------|---------|
Car |213 |56 | Sold
|75 |3 | Rent
-------------------------
Bike|13 |6 | Sold
|5 |2 | Rent
-------------------------
[/code]
Moreover, I would like to have a change to fix both the leftmost and rightmost columns so that the user can scroll the actual content of the data without losing data description.

For the last point the FixedColumns seems to fit my needs, but the overall issue is that if use the rowspan="2" for Car and Bike cells all the features of the DataTables stop to work.

Do you have any idea or tips?

Best regards,
Stefano Lenzi

Replies

  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin
    DataTables does not support rowspan or colspan in the tbody (each row and column is independent of each either so filtering and column removal can occur). The closest DataTables currently gets to supporting colspan is something like this: http://datatables.net/release-datatables/extras/FixedColumns/row_grouping_height.html

    Allan
This discussion has been closed.