Timeline dynamic section update

Hi!

I have a timeline with sections that need to be updated for every date range showed in the screen.

Fore example:

  1. I load the page for the first time server/scheduler, and it shows the timeline with data from this week (05.05.2014 to the 14.05.2014). The sections are loaded from database and I get they to the scheduler with:
 var seccions = <?php echo json_encode($seccions_tree); ?>;
 scheduler.serverList("timeline_seccions", seccions.slice());
 scheduler.createTimelineView({
   name:"timeline_week",
   (...)
   y_unit:scheduler.serverList("timeline_seccions"),
   (...)
   render:"tree"
 });
  1. When I to the “Next” and “Previous” week buttons etc, I need to reload the sections because it can be different depending on the dates.

Is there a way to do that more ore less automatically?
How can I pass the actual dates to the server to make the database query of the sections?

Thx

Hi,
there is no automated way for this.
Check the topics with the discussions on similar question
viewtopic.php?f=6&t=36285&p=112277&hilit=updatecollection#p112277
viewtopic.php?f=6&t=32287&p=100796&hilit=timeline+section+update#p100796

Regarding loading sections from the database, there is no built-in means. You’ll have to manually send an ajax request to the server and load sections data. Similar to how it’s done in this topic (only client-side code is related)
viewtopic.php?f=25&t=34592&p=109082&hilit=load+sections#p109082
docs.dhtmlx.com/scheduler/api__s … event.html

It worked, thx!