heading should be displayed from ajax call
Here is an example:
It generates the column titles from the keys of the first object. Another option would be to return an additional data object that contains the heading titles. It uses columns.title to have Datatables create the thead using the titles.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.