Group aggregation

Group aggregation

ivchoooivchooo Posts: 5Questions: 3Answers: 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: 40,041Questions: 1Answers: 4,835 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: 5Questions: 3Answers: 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: 40,041Questions: 1Answers: 4,835 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

Sign In or Register to comment.