Footer sum using data attribute

Footer sum using data attribute

palomarzianopalomarziano Posts: 4Questions: 1Answers: 0

Hi, I would like to use the footer function to get the sum of a column. In the column I display the the number with some html style and if I sum the values I get an error. In the cell I put the integer value on two data attributes, "data-sort" and "data-csv" and I would like to use this value to obtain the sum.
I tried to put the name of the data attribute, with and without "data-" and also with "@" but nothing.
ex. pageTotal = api.column(i).data('data-csv')......
Could you help me?

Answers

Sign In or Register to comment.