dhtmlxScheduler 2.3 - Timeline - Next button

Hi,

I have upgraded to 2.3 and am trying to include a timeline view.

I have set up the view with the following parameters:

scheduler.createTimelineView({
name: “timeline”,
x_unit: “hour”,
x_date: “%H:%i”,
x_step: 1,
x_size: 10,
x_start: 8,
dx: 150,
y_unit: keyLabelPairs,
y_property:“user”,
render: “bar”
});

And everything displays correctly. However if I press the Next button to cycle to the next day, it just stays on the same day. Pressing the Previous button still works and does go to the previous day, and the Today button does go to the current day.

Is this a bug?

Also I found that the style command “table-layout:fixed;” in the dhtmlxscheduler_timeline.js breaks the layout if the calendar is embedded in a div, rather than displayed full page but this isn’t as much of an issue.

Any help appreciated.

Thanks
Paul

Hi Paul,
I think I produced the same issue as you in the sample attached in the following discussion forum thread:
viewtopic.php?f=6&t=14954

Still waiting on a resolution to the issue…
Kind regards
Greg

Try to change the init code as

scheduler.createTimelineView({ name: "timeline", x_unit: "hour", x_date: "%H:%i", x_step: 1, x_size: 10, x_length:24, //added, control "next" step, which will be 24 hours in your case x_start: 8, dx: 150, y_unit: keyLabelPairs, y_property:"user", render: "bar" });

Thanks Stanislav, that worked for me.

Cheers
Paul