In my code
When I first refreshed the page and loaded it, the start time of Task # 2.2 changed to April 5th, 2023, but the actual data used was April 6th, 2023
So the problem is that the same code and data are displayed incorrectly when I refresh the browser, and switching menu refresh is correct. And I found that when I remove links, the timeline display is also correct, even if I refresh the browser.
Also, if you get different data when you switch tabs, it means that you don’t use the Gantt Instance approach, so Gantt loads the data and configuration again when you switch to the tab with Gantt.
If you use Gantt in Angular, React, Vue, or other framework related to node.js, it is expected to use the Gantt Instance approach.
If that doesn’t help you, probably, the issue is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
Please send me a ready demo with all the necessary JavaScript and CSS files so that I can reproduce the issue locally.
Oh, thank you very much for your answer. Based on your prompt, I checked my code and found that it was indeed caused by auto scheduling. I will adjust my code based on the examples you provided. Thank you for your timely response!
1 Like
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan