Stop Scheduler altering sort order of events

Hi,

We have a scheduler which shows events on a timeline. These are sorted in date order. We have added the functionality that when a user clicks on an event, it then shows the sub-events for that main event (sub-events are not shown initially).

We need the sub-events to show directly below the event that was clicked.

This generally works fine except, if the scheduler, when rendering the main events decides to be “clever” and reposition an event higher in the chart because it can fit it in. Then, if we click the event, the sub-events to not appear directly below but appear lower in the chart, where the main event would have appeared if the scheduler had not been “clever”.

Is there a way to stop scheduler fitting events in higher up the chart, so all events display strictly in date order?

Hello @jezzerwebb,

We need the sub-events to show directly below the event that was clicked.

Unfortunately you didn’t mention how it was implemented in your app. If you use Tree Timeline, ‘sub events’ are placed below their ‘parent’ event.
https://docs.dhtmlx.com/scheduler/samples/06_timeline/03_tree.html

Is there a way to stop scheduler fitting events in higher up the chart, so all events display strictly in date order?

By default, each event takes the first available free space from the top of the line in the Timeline view.
So, I think you can’t filter them by dates and put several of them in the middle of the timeline row if there are no events in the same row above.