I’m using scheduler as a timeline,
first time loads correctly but when i reload the div via AJAX gives exception “Cannot read property ‘32’ of undefined” in dhtmlx_scheduler_timeline.js:
if (order.hasOwnProperty(key)) {
units.push(key);
areas.push(view_opts._scales[key]);
}
.
I add that the reload mechanims is ok with calendar in non timeline mode.
Hi,
please provide a complete demo or give a link to the page where the problem can be checked
the error is on line
“if (order.hasOwnProperty(key)) {”
dhtmlxschedulert_timeline.js
here the code:
problem seems in recreating/reinitializing:
y_unit: [ ]
the second time i load the page containing the calendar js via ajax.
i’ve disabled loading of the xml event data and y_unit: [] with no values and the timeline renders ok.
Problem appears to only to be on x_unit=day.
If i choose month, week etc. ajax loading is ok. But with day scheduler doesn’ render
Events xml is:
…
…
<event_id>Timelibe_Absence_Request_HR_039</event_id>
<start_date>08/08/2011 00:00:00</start_date>
<end_date>09/17/2011 00:00:00</end_date>
Progra, Luca
white
#A52A2A
32
Timelibe_Absence_Request_HR_040
11/12/2014 00:00:00
11/17/2014 00:00:00
Screti, Antonio
white
#A52A2A
12866
…
…
Sorry, but we still can’t reconstruct the issue locally
If you have a support subscription - please open ticket at support.dhtmlx.com