Reload Data via load() and only update the tasks

Hello,

I have a small question that maybe can be answered in a simple way.

My situation: GANTT.php loads JSON from DATA.php. Simple layout: Projects (always the same) that include tasks (may change). No Subprojects, no subtasks.

I want to load the complete (maybe partially changed) data from DATA.php and display it in the GANTT. My problem is that load() refreshes the whole document. It also minimizes the project trees that have maybe been opened by the user:
[-] PROJECT1
TASK 1
[-] PROJECT2
TASK 1
TASK 2
[+] PROJECT3

load() leads to:

[+] PROJECT1
[+] PROJECT2
[+] PROJECT3

I hope you can help me. Thank you in advance.

Markus

Hello,

You need to update and save in data the value of ‘open’ property of parent task when user open/close the branch.
You can do it when onTaskOpened and onTaskClosed events fire.