rowspan on table

rowspan on table

yu yen kanyu yen kan Posts: 65Questions: 31Answers: 0
edited September 2023 in Feature requests

Is there anyway I customize on rowspan usage of table? I would like to enhance abit on the usage of rowspan on both header and body to support below structure

2 row header top row header
bottom row header
2 row column top row column
bottom row column

Answers

  • kthorngrenkthorngren Posts: 19,864Questions: 26Answers: 4,685

    Rowspan is supported in the thead but not the tbody. See the HTML Requirements docs for details. See this example for using rowspan in the header.

    Kevin

  • yu yen kanyu yen kan Posts: 65Questions: 31Answers: 0

    ya, but I want it to support on tbody too, and on thead, I cannot having sorting on top and bottom row header.
    this is the reason why I want to customize the rendering part

  • allanallan Posts: 60,903Questions: 1Answers: 9,927 Site admin

    You might want it, but it isn't possible in DataTables at the moment I'm afraid :). Rows in the tbody are 100% separate from each other so the data in the table can be sorted and filtered independently of other rows.

    Sorry, but it isn't something DataTables can do.

    Allan

  • kthorngrenkthorngren Posts: 19,864Questions: 26Answers: 4,685

    See if this thread helps with changing the sort icons.

    Kevin

Sign In or Register to comment.