It is possible to create 2 units view on the scheduler ? ...

It is possible to create 2 units view on the scheduler ?


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”;











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.

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.

Please, check attached sample
02_units_view.html.zip (1.06 KB)


Alex,



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

I have got this working, and am now interested in hiding on the units view the column with the unit which does not have an event for that day. Thanks,

It will require a lot of coding

You can change the collection of possible units (“sections1”) and call update_view() - scheduler will be reset with different set of units. But logic which will define which units have events and which are not - need to be created manually.