Can I count the groups (RowGroup) in the footerCallback ?
Can I count the groups (RowGroup) in the footerCallback ?
MelodyNelson
Posts: 213Questions: 33Answers: 2
Link to test case: https://live.datatables.net/vaqerila/12/edit
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Hi,
I have made this case from the example website :
https://live.datatables.net/vaqerila/12/edit
How can I count the groups created by the RowGroup extension and use this counter in the footer (see the infos in red in the footer) ?
Thank you
This question has an accepted answers - jump to answer
Answers
There isn't a way to count the number of groups. However you can use
column().data()
withunique()
andcount()
to get the info. For example:https://live.datatables.net/tigubucu/1/edit
Kevin
That's perfect !
I have use it for the general average in the footer of a DT.
This table is (almost) finished
Thanks Kevin