Group aggregation

Group aggregation

ivchoooivchooo Posts: 8Questions: 5Answers: 0

Hi, I use grouping as is showed in the example
https://datatables.net/examples/advanced_init/row_grouping.html
But I want to add aggregation for a particular group.
Any suggestions ?

Answers

  • allanallan Posts: 61,443Questions: 1Answers: 10,053 Site admin

    Currently you'd need to modify that code to add the summation or whatever it is that you want to do to that code.

    I'm planning on writing a row grouping plug-in at some point that will help with that kind of thing.

    Allan

  • ivchoooivchooo Posts: 8Questions: 5Answers: 0

    Ok, I write a js function to sum the result and add it in the initComplite but it does not work good with paging :(

  • allanallan Posts: 61,443Questions: 1Answers: 10,053 Site admin

    You probably need to use a row-selector to make sure that you only select rows from the current page (assuming that is the issue).

    Allan

This discussion has been closed.