Datatable Export functionality not working Properly
Datatable Export functionality not working Properly
rahulbharti
Posts: 1Questions: 1Answers: 0
I am working on a mvc project. i am using datatable with jquery.I use ajax for saving and binding datatable . I have created controls like Textbox and dropdown , on the basis of which the datatable is loading.the record are correctly showing but Pdf,excel etc button are exporting old data every time ,So i cannot get the desired results
This discussion has been closed.
Answers
How are you updating the table, ie, are you using Datatables API's?
If you are not using Datatables API's to update the table then you need to use
rows().invalidate()
to have Datatables update its cache with the new data.If this doesn't help then please provide a link to a page or test case with the issue for troubleshooting.
Kevin