Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 16, 2009 07:23
open dhtmlx forum
It is possible to create 2 units view on the scheduler ? ...

It is possible to create 2 units view on the scheduler ?
Answer posted by Alex (support) on Nov 16, 2009 08:40

Yes, it's possible:

var sections1 = [...];
var sections2 = [...];

scheduler.createUnitsView("unit1","section_id1",sections1);
scheduler.createUnitsView("unit2","section_id2",sections2);

scheduler.locale.labels.unit1_tab = "Unit1";

scheduler.locale.labels.unit2_tab = "Unit2";

..

<div class="dhx_cal_tab" name="unit1_tab" style="right:280px;"></div>
 <div class="dhx_cal_tab" name="unit2_tab" style="right:350px;"></div>


Answer posted by mahesh on Nov 17, 2009 08:15
I like this idea.  I tried it and seem to get an error where I am no longer able to get the unit views, even the one that existed previously.
Answer posted by mahesh on Nov 17, 2009 08:15
I like this idea.  I tried it and seem to get an error where I am no longer able to get the unit views, even the one that existed previously.
Answer posted by Alex (support) on Nov 17, 2009 09:06
Please, check attached sample
Attachments (1)
Answer posted by mahesh on Nov 17, 2009 21:58

Alex,

  Thanks, the sample was most helpful.  I was able to use it to do exactly what I need.