Save and reloading the DHTMLX Scheduler Timeline Tree State

Hello,

I thought I remembered seeing a method to save and reload the state of the dhtmlx timeline tree status (ie the opened and closed states of each section), but I’m not able to find it on the website again.

Do you know how to achieve this as some of our timeline trees have many levels which the user would like to have saved within a cookie and reloaded on page load?

Thanks,
Tim

Hi,

Unfortunately there is no ready solution.
To solve it, you can check the state of branch when onAfterFolderToggle fires
docs.dhtmlx.com/scheduler/api__ … event.html

This state can be saved for example to localStorage and then restore it when sections are loading
snippet.dhtmlx.com/6400b2425