Sum of all rows

Sum of all rows

jamessteelforthjamessteelforth Posts: 17Questions: 4Answers: 0
edited November 2013 in General
Hi guys i have a data-table with n number of records and i also have a footer in my html table. I want to be able to sum up all the rows in footer. There any easy way to do this???

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sum the rows in the footer? That's not something DataTables will really help with I'm afraid. You'd need to use standard DOM / jQuery methods to get the data from the footer and then sum it. DataTables provides access to the footer, but doesn't provide the same degree of information as it does of rate tbody.

    Allan
This discussion has been closed.