Link to home
Start Free TrialLog in
Avatar of j789
j789Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Add totals row to JQuery DataTables

I'm using the JQuery DataTables library and would like to add a total row to the footer of the table. The totals displayed in the row should update each time a filter is applied (number of rows to display or using the search filter). Does anyone have an example of how this can be done? Thanks
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
See the docs located here:

Basically, you have to use a footer callback function.  Let me know if you have any questions.
@Jim GMTA
I was in the process of copying and pasting the code sources, but then I decided to simply link to the site.  lol  Once I posted it, I saw your solution and had to do a face palm.
Avatar of j789

ASKER

Thanks Scott. Works perfectly!