Pedro Coelho wrote:
Hi
I am trying to add the events on GetDataActionOnAfterFetch but the events do not appear on the calendar.
I tried with RefetchEvents and NewEventSourceData (and both) but it doesn't seem to be working.
Can you help me how to do this?
Thanks,
Pedro
Hi Pedro,
There are several ways to add events to the calendar, NewEventSourceData(add a local source), NewEventSourceURL(get source data from url like REST API) or the AddEvent action.
In the case of NewEventSourceData, the calendar can only be started after GetDataActionOnAfterFetch, because the events are pass and defined when the calendar display is made.
You can try something like that, only display the calendar after the data is fetch, please let me know if this solves your problem.

At this time, we can only add events(input paramenters) when the calendar starts. One of the methods I use is the NewEventSourceURL(Rest API), with this method we can do the refetchEvents and the calendar will fetch by itself the data.
I hope I was able to help, let me know if this solution doesn't work.