Problem during dynamically loading data (Data not getting cleared)

Problem during dynamically loading data (Data not getting cleared)

stalinleoalexstalinleoalex Posts: 1Questions: 1Answers: 0

**https://datatables.net/extensions/buttons/examples/initialisation/export.html**:

Description of problem: We used the above example in our project. We are fetching data according to the date selected. In a button click, we are dynamically adding data into datatable. On load of the page everything works perfectly. But when we refresh our search criteria (date) and click the button, and when we search the data in the text box, the datatable is loaded with previously fetched data (data fetched on loading).

Kindly help with a solution.

Answers

  • kthorngrenkthorngren Posts: 21,327Questions: 26Answers: 4,949

    How are you adding the new data? Sounds like you might not be using Datatables API's to do this. See this FAQ.

    Kevin

Sign In or Register to comment.