Showing a summary row for sub rows

Showing a summary row for sub rows

olefrankolefrank Posts: 2Questions: 0Answers: 0
edited March 2013 in General
I'm new to Datatables...

I'm making a grid of rows, each with sub rows. I'm using server-side data from a mysql database. It is returned as JSON containing all sub rows.
I need to create the "main" grid rows, summing up columns from the sub rows. I'm not sure if Datatables can do this or how it is done...

I'm thinking about starting by getting the JSON in a JQuery function. Then using a loop to sum up data I need and pass that on to the grid as array-data. Lastly I render the grid.

Is this best practice or is datatables capable of doing it in a smarter way?

Best regards
Ole
This discussion has been closed.