Hi, i was curious if there is any way to get any task data that running each day. for example;
April 1st : Task 1
April 2nd: Task 1, Task 3
April 3rd: Task 1, Task 2, Task 3
Hello Reza,
You can iterate all tasks by using the eachTask
method:
https://docs.dhtmlx.com/gantt/api__gantt_eachtask.html
Or you can use the getTaskByTime
method:
https://docs.dhtmlx.com/gantt/api__gantt_gettaskbytime.html
Here are examples:
https://snippet.dhtmlx.com/z8ydgjyk
https://snippet.dhtmlx.com/rmdgfjp2
If you want to obtain only the tasks that don’t have the subtasks, you can check the parent
parameter in the task
object. In that case, it is better to use the eachTask
method as it allows to use the conditions inside the function. Otherwise, you would need to iterate the array with tasks later:
https://snippet.dhtmlx.com/48g9sagt