How do I merge values in a column? That make them appear merged rather than with heading?

How do I merge values in a column? That make them appear merged rather than with heading?

joshuapjoshuap Posts: 2Questions: 1Answers: 0

Link to test case: http://live.datatables.net/bodanole/6943/edit
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Answers

  • kthorngrenkthorngren Posts: 20,309Questions: 26Answers: 4,769
    edited March 2021

    You have rowsGroup: [...] which refers to a third party developed row grouping library. Notice the s in rows. The Datatables library does not contain the s. To use the Datatables library you will use the rowGroup.dataSrc to define the columns. You will also want to use order to order the columns defined in the rowGroup.dataSrc. Your example loads an old version of RowGroup (1.0.0) that doesn't. support multi level groups. You will want to use the latest. Plus you will want to load the rowGroup.css. See the updated example:
    http://live.datatables.net/wacavadu/1/edit

    Take a look at the provided examples.

    Kevin

  • joshuapjoshuap Posts: 2Questions: 1Answers: 0

    Does this mean there is no way to achieve the merge that combines rows with the new Datatables version?

  • kthorngrenkthorngren Posts: 20,309Questions: 26Answers: 4,769
    edited April 2021

    Does this mean there is no way to achieve the merge that combines rows

    Datatables doesn't have a way to merge rows. It simply displays the rows as provided. You can group rows using the rowGroup extension and possibly make it look like merged rows. Or, maybe a better option, is to create a DB query that merges the rows the way you want.

    Please provide more details of how you would like the rows to be merged.

    Kevin

This discussion has been closed.