how to calculate the percentage of a column
how to calculate the percentage of a column
pravs
Posts: 29Questions: 4Answers: 0
Hi I need to calculate the percentage of particular column like (total_of_column/No.ofcolumn)*100 using footer call back. please help me I need it urgent.
This discussion has been closed.
Answers
how to get the length of column in footer callback
You could use
count()
to count the number of rows.Kevin
yes but I got the count value as 0 in footer callback even though I have data in the table
We'd need a test case to know why that is.
This example shows how a total can be calculated and a percentage could be taken from that.
Allan