Issue 1351: Request: Event hook for -after- calender render complete
Status:  Done
Owner: ----
Closed:  Aug 2013
Reported by splice...@gmail.com, Mar 25, 2012
I am trying to create a trigger the occurs immediately after all event sources have finished, and events have been rendered into memory (queryable through "clientEvents"). Unfortunately the "loading" hook is fired JUST before events are actually loaded into memory, so this:

function loading(isLoading, view) {			
 if(!isLoading){
   ... .fullCalendar("clientEvents",
 }
			
}

Produces an empty array.

However if I instead do a setTimeout() timer for 1ms inside of the loading hook, then I get results when calling "clientEvents":

function loading(isLoading, view) {			
 if(!isLoading){
   setTimeout("... .fullCalendar("clientEvents" ... ", 1);
 }			
}

So I think that we need a hook point that occurs right after events are actually loaded into memory or we need to modify the existing "loading" hook so that it fires after events are in memory.

FYI, using "eventAfterRender" is not what I am looking for since I only want to act after the LAST event (read: all events) has been rendered. I am generating stats from the calender, and using "clientEvents" to query to build my metrics.

-Brian
Mar 26, 2012
#1 splice...@gmail.com
Also FYI, this is using FullCalendar v1.4.10. I am unable to update to 1.5 at this time, so this issue might be already irreverent in newer versions.