How to add events to Timeline?

I tried to use addEvent with additional “key” parameter, no success.
I want to fill timelines with events and let the user to choose one. It’s for some kind of booking system.

Regards
Konrad

Beware that you need to provide some valid key value ( for existing line in timeline view ) or event will not be rendered

If issue still occurs - please provide samples of code which you are using for the event adding and timeline initialization

I found the leads in dhtmlxscheduler_timeline.js, line 448:

g[scheduler.matrix[scheduler._mode].y_property] = i.y_unit[b].key;

than scheduler.addEvent(g);
It’s working …

Regards
Konrad