newbie question

newbie question

cparkcpark Posts: 3Questions: 0Answers: 0
edited May 2012 in General
Hi,

Today is my first day to look into DataTable, I am quited impressed but can not seem to find a feature I want: to create aggregate summaries for columns, say I want to sum, or average the numeric columns, or just count number of rows.

Thanks

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    This isn't a built in feature since it would add a significant amount of code for something that would be used only in the minority of cases. At some point I plan to write a plug-in to make this kind of thing super easy, but until then it is easy to do with the fnGetColumnData plug-in ( http://datatables.net/plug-ins/api#fnGetColumnData ) and simply sum the data from the column using a line or two of Javascript.

    Allan
This discussion has been closed.