Hi @allan How to Create a New column to Datatable?

Hi @allan How to Create a New column to Datatable?

sairamVsairamV Posts: 11Questions: 6Answers: 0
edited June 2017 in Free community support

I need to Create a New column to Datatable.

Answers

  • allanallan Posts: 62,211Questions: 1Answers: 10,205 Site admin

    Do you mean you want to add it to the table dynamically? If so, that is not a feature of DataTables at this time. You need to have the number of columns configured at initialisation time.

    Allan

  • gyrocodegyrocode Posts: 126Questions: 6Answers: 30

    The only option is to destroy the table with destroy() method, add a new column or change DataTables configuration and re-initialize the table.


    See more articles about jQuery DataTables on gyrocode.com.

  • bindridbindrid Posts: 730Questions: 0Answers: 119

    You could create an empty column and set it invisible until you need it.

This discussion has been closed.