Thx
Hareesh,looks to me a bit like a crutch as the proposed event fires every time when (event?) data are bound to the schedule. I would be looking for an event that fires once when the schedule is rendered (not sure if a re-rendering would for a certain amount of time set the scheduler to isRendered = false). Purpose is to avoid the type errors I get when e.g. calling getViewDates() on a created, but not (fully) rendered schedule.
Also - is there any event available for the RecurrenceEditor object, that fires when the object is rendered. I'm currently trying different timeouts before loading a RecurrenceRule into the editor to avoid an error (can share the error details if needed), but this is not really a solution:
if (this.showRecurrenceEditor && this.eventData?.RecurrenceRule) {
let loadRecurrenceRule = true;
[10, 25, 50, 100, 200, 500].forEach(t => setTimeout(()=>{
if ((this.recEditorObj as any)?.isRendered && loadRecurrenceRule) {
console.log(this.recEditorObj, t)
this.recEditorObj.setRecurrenceRule(this.eventData.RecurrenceRule);
this.eventData.RecurrenceRule = this.recEditorObj.getRecurrenceRule();
loadRecurrenceRule = false;
}
},t));
}