sAjaxSource and Footers

sAjaxSource and Footers

TheLexusTheLexus Posts: 4Questions: 0Answers: 0
edited March 2012 in General
Hi.

I use Datatables and json formatted data with the sAjaxSource option wich works fine. But now i have to add a static (not client side calculated) footer with several rows and cells. Is there any way to add this footer to the json data and force datatables to add a footer?

Thanks and Bye!
TL

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    DataTables doesn't have a built in method to automatically create footer elements, however its easy enough to do with standard DOM methods. Once your data has loaded you will have access tot he data that was loaded from the server (use fnInitComplete ) so you can use createElement etc to add your footer cells with the data you want.

    Allan
This discussion has been closed.