Show number of grouped rows per group

Show number of grouped rows per group

dgbeerdgbeer Posts: 4Questions: 2Answers: 0

Just change line 281 of dataTables.rowGroup.js to
display = this.c.startRender.call( this, dt.rows(rows), groupName + " (" + group.rows.length + ")" , level );

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586
    Answer ✓

    Hi @dgbeer ,

    One problem with doing it that way is that you'll lose that edit if you upgrade. This example shows how you can do that within the render functions, which would be more portable longterm.

    Cheers,

    Colin

  • dgbeerdgbeer Posts: 4Questions: 2Answers: 0

    Thanks!

This discussion has been closed.