Units view - js error

Not sure if this is a 4.0 bug.

But I have created a units view. And then I select on month, day view nagivate up and down the dates.

Now if I click on the units tab I see following error:

TypeError: schedule.date[(scheduler._mode + “_start”)] is not a function.

Only way to recover from this error is to reload the window…

My javascript code is as follows

Please provide code, which was used for unit’s view creation

If you have mean “timeline” view - be sure that tab in html code has the same “timeline_tab” value for the name.

  • This is my html, I have posted the js code already:

      <div id="scheduler_here" class="dhx_cal_container span10" style="height:100%;width:100%">
              <div class="dhx_cal_navline" style="height:100%;width95%">
                      <div class='dhx_cal_export pdf' id='export_pdf' title='Export to PDF' onclick='scheduler.toPDF("http://dhtmlxscheduler.appspot.com/export/pdf", "color")'>&nbsp;</div> 
                      <div class="dhx_cal_prev_button">&nbsp;</div>
                      <div class="dhx_cal_next_button">&nbsp;</div>
                      <div class="dhx_cal_today_button"></div>
                      <div class="dhx_cal_date"></div>
                      <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
                      <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
                      <div class="dhx_cal_tab" name="unit_tab" style="right:280px;"></div>
                      <div class="dhx_cal_tab" name="timeline_tab" style="right:280px;"></div>
                      <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
              <div class="dhx_cal_header">
              <div class="dhx_cal_data">

Tab for units view must have name=‘units_tab’, not ‘unit_tab’