How to refresh datatable column data

How to refresh datatable column data

Zsolt BaloghZsolt Balogh Posts: 2Questions: 2Answers: 0

Hi all,

I use data table plugin with table as data source.
I have to change some column value via javascript when the user types in some numbers.
It is working well but when I want to export the table the columns witch was changed with javascript is not displayed in the exported file.

I think the problem is that I have not refreshed the datatable plugin. Is this correct? If yes how do I refresh the datasource? If no what can be the problem and how can I solve it?

I tried the refresh() method (var dataTableObject = $(this).parents('table').dataTable(); dataTableObject.refresh();) but is not working.

Thanks,
Zsolti

This discussion has been closed.