Datatable Sumamry

Datatable Sumamry

bramha007bramha007 Posts: 4Questions: 0Answers: 0
edited December 2011 in DataTables 1.8
Hi,

I was wondering if there is a way to have a small summary section below the Datatable to populate some calculations. I am displaying the datatable using sAjaxSource and fnServerData functions. I just want to have a small section below the table to show SUM, Total..etc.


Thanks
Bramha

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Use fnDrawCallback to execute your summary function on each draw, and a technique such as this http://datatables.net/release-datatables/examples/advanced_init/dom_toolbar.html to put your summary element in place.

    If you wanted to take it further, you could create a full feature plug-in: http://datatables.net/blog/Creating_feature_plug-ins

    Allan
This discussion has been closed.