Can dataTables handle rowspan?

Can dataTables handle rowspan?

praveenpraveen Posts: 3Questions: 0Answers: 0
edited January 2010 in General
I am trying to use tables in which some of the columns span to more than one row. One such example is in http://www.treasurydirect.gov/instit/annceresult/press/preanre/2010/2010_26week.htm . Can dataTables handle these cases.

thanks
Praveen.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi Praveen,

    I'm sorry to say not. DataTables currently works on rows which at 100% independent from each other. It would be possible to do something like in this ( http://datatables.net/examples/advanced_init/row_grouping.html ) example, to have the fnDrawCallback modify the DOM and group the records - but I expect it might be quite tricky to do.

    Another trick which would work (but again not be ideal) is to use aaSortingFixed, and group the columns that way (i.e. so the "rowspan" ones all stay where they should) and modify the drawing of the table as required, again using the draw callback.

    Sorry I can't be of more help than this.

    Regards,
    Allan
This discussion has been closed.