How to add columns dynamically to Datatables??
How to add columns dynamically to Datatables??
I have a table without table head,I want to add table head/Columns and data from server.Is there any way to do this.Please help me out
This question has an accepted answers - jump to answer
This discussion has been closed.
            
Answers
This question gets asked quite often so I created this example:
http://live.datatables.net/fafuyeyu/55/edit
The is only a
tabletag created. It usescolumns.titleto set the column title. It builds thecolumns.datafrom the keys returned in the first JSON object. However you could have your server script return this info.Kevin