How to force Calendar to reload?

Using jQuery or just javascript, how can I force the calendar to reload so that the onPageLoading method fires? I need to do this from an external js method. I’ve been looking for hours on how to do this and have come up empty. I thought it would be something like: $(‘#workoutCalendar’).reload(); or something like inst.reload();

Any help would be greatly appreciated.

Hi @Michael_Stahr :wave:

In the case where you delete an event from the eventcalendar, my recommendation would be to use the removeEvent method of the instance, instead of querying all the events again. Performance wise this is a lot better.

Generally speaking, extracting the common functionality into a function and calling that function from multiple places is also an option. If you have code that should run not only in the onPageLoading but on refresh as well, I would recommend writing a function for it.