DataStroe's data problems

Every time I update the data from a database to the table below, the below form will be the last of the data and the data is displayed, but before I do not need a cache data, only keep the latest data retrieved from the database. I noticed this is gantt createDatastore method of initialization time, will give priority to take the last data.
Please tell me the solution in time, thank you.


1553566781(1)

Hello Jack,
Do you mean that when you parse the data, you want to load only the latest data and remove the previous data? If yes, you need to use resourcesStore.clearAll(); to clear the resource store. Here is an example:
http://snippet.dhtmlx.com/0fe2e7873

If you need something else, please give me more details about your case and reproduce the issue in the snippet above. Then click on the “Share” button and copy the link.

Thank you ,Ramil.You solved my problem perfectly.