Hi folks,
I'm struggling with the following requirement:
I have a schedule with two sets of events - one being regular events and the other a complex set of work-hours stored as a second set of (mostly recurring) events. Both event types have a (similar) resource hierarchy to take care of.
I found no hint that I can show these workhour-events in my scheduler as sort of shadow events that just mark the work-cells with e.g. a specific color.
I planned to use the
isSlotAvailable method and color the work-cells using the
onRenderCells event. Other option I considered was to get an array of all relevant work-hour occurrences (using
getOccurrencesByRange method and calculate a similar approach. As I cannnot show these events in the same schedule as the regular events I created another schedule object which was not rendered. While I was able to load the work-hour events into this schduler objects (eventSettings.datasource), the call to the above method failed. I assumed that I cannot use these methods on an non-rendered calendar (pls. confirm). When I tried to render the second scheduler, I got a multitude of warnings as below:
index.html#/schedule2:1 [DOM] Found 2 elements with non-unique id #EndTimezone: (More info: https://goo.gl/9p2vKq) <input class="e-end-time-zone e-field e-control e-dropdownlist e-lib" type="text" value id="EndTimezone" title="Zeitzone Ende" role="textbox" aria-labelledby="label_EndTimezone" readonly style tabindex="-1"> <input class="e-end-time-zone e-field e-control e-dropdownlist e-lib" type="text" value id="EndTimezone" title="Zeitzone Ende" role="textbox" aria-labelledby="label_EndTimezone" readonly style tabindex="-1">
Who can help me with the best approach to solve my above requirement? Is there a function/method available like getOccurrencesByRange that would work on a non-rendered calendar or directly as a function by passing the
RecurrenceRule string (similar to rrulestr, which I was unable to get to work in my Angular environment)?
Any help very welcome!
Julius