Rowspan,use rowgroup instead?

Rowspan,use rowgroup instead?

Kalle504Kalle504 Posts: 16Questions: 5Answers: 0

Hello Everyone,

I have serached for an answer to this question. I would like to have rowspan for the first column. If I declare the table according to the picture I got a lot of errors. If I have understood datatable does not support rowspan in the body?

I have seen the rowgroup option, could I use this instead to make a table as in the picture? (I could not find any example that use rowspan for rowgroup)

Thanks everyone, I must say this is a very very good code you have done!

Cheers K

Answers

  • kthorngrenkthorngren Posts: 21,179Questions: 26Answers: 4,923

    You are correct. The HTML requirements doc state this:

    Please also note that while DataTables supports colspan and rowspan in the table's header and footer, they are not supported in the table's tbody and must not be present.

    I think using RowGroup would be very complex to achieve a rowspan effect in the Datatable. What are you trying to achieve with rowspan? The screenshot doesn't help me understand why you want rowspan.

    Kevin

This discussion has been closed.