Sums of columns
Sums of columns

Hi guys,
I must to do a video the sums of 2 columns how to do?
This question has an accepted answers - jump to answer
This discussion has been closed.
Hi guys,
I must to do a video the sums of 2 columns how to do?
This question has an accepted answers - jump to answer
Answers
This example shows how to sum one column. Just repeat the code for each column.
https://datatables.net/examples/advanced_init/footer_callback.html
Kevin
Kevin i cant use footerCallback because i just use the searchpanes on the footer
You can use the same code in the
drawCallback
.Kevin
i want to see the sums of columns in this footer with red rectangle i can?
Use the FooterCallback example I linked to originally. First get one column working then repeat the code for the other two columns.
Kevin
i add the code for one column but return me an error
https://damoratraffico.netsons.org/nord/scrivania1.html
The error
DataTables warning: table id={id} - Cannot reinitialise DataTable.
provides a troubleshooting link:https://datatables.net/manual/tech-notes/3
Did you follow the steps in the link? You will want the "Single initialisation" solution.
Kevin
okay, i resolved the proble,the code for the 3 sums is this?
Looks good.
Kevin
Nope return all 0
ehm, @kthorngren now works boh idk what r happened maybe my fault..