Question about tabletools cahing data (from total beginner of tabletools)

Question about tabletools cahing data (from total beginner of tabletools)

FedorovFedorov Posts: 1Questions: 0Answers: 0
edited August 2013 in TableTools
Hi,

I fetch data from a web service and bind it to a template with knockout. Then I apply the table tools functionality. However, there is an option to filter this data by specifying certain date intervals. I then send these intervals to the web service and fetch the new, filtered data (which often then contain fewer records).

However, when the data is bound and the GUI is rendered the new data appears only to be added to the already existing data as if the old data was cached somewhere. Example: if the first fetch returns 10 rows and after filtering it returns 3 rows then I see 13 rows in the GUI.
If I remove the $("#mytable").datatable(..) then it shows the correct amount of records so the datatables functionality somehow caches the data is my guess.

How do I clear the cache from the datatables? Or what do I need to do?

Best regards
This discussion has been closed.