Hello Tim DHTMLX,
Sorry I need help, how to calculate the duration just to allow weekdays?
thank you.
Hello Tim DHTMLX,
Sorry I need help, how to calculate the duration just to allow weekdays?
thank you.
Hello,
There is a work_time
config which enables calculating the duration of tasks in working time instead of calendar time. It means that Gantt doesn’t take into account the weekends when calculates the duration of the tasks when the work_time
enabled. By default, this config is disabled:
work_time Gantt Docs ;
Please check the examples:
Working days as duration ;
DHTMLX Snippet Tool ;
If it doesn’t help you, please, add your configuration in the snippet above and make sure that the issue is reproduced there. Then, click on the Save
button and send me the link. Or send me a ready demo with all the necessary JavaScript and CSS files so that I can reproduce the issue locally.
okay, thank you sir for the help me.
temporary my backend to calculate duration. but I have an issue again the gan UI does not reset/reload after adding a new task.
sorry, my English is not good.
DONE!
use gantt.clearAll() for reset cacke
thank you…
still an issue I can’t redo/undo the task
because :
Hello Septe,
It depends on how it is implemented in your case.
By default, when you create a new task, Gantt adds the timestamp to the task ID:
If you use the Data Processor, Gantt sends the task to the server, but the ID is not sent. Then the server should return the ID for the task and Gantt will update the task ID on the client-side:
https://docs.dhtmlx.com/gantt/desktop__server_side.html#:~:text=Request%20and%20response%20details
When I use that approach, I cannot reproduce the issue:
https://files.dhtmlx.com/30d/f6d06a47a51c982f8877c8bfc905c201/vokoscreen-2022-11-03_12-39-15.mp4
Here is the demo:
https://files.dhtmlx.com/30d/87d206547103198d8bf3aae8cec17e70/vue3+gantt-instance+json_db+undo.zip
Thank you, sir.
thank you for the solution.
I will try again.