Issue 753: trigger after all events have been rendered
Status:  Released
Owner: ----
Closed:  Aug 2013
Reported by mark.luh...@gmail.com, Dec 9, 2010
I have searched the doco and the stackoverflow site and can't find an answer to this. When using lazy fetching I need a way to execute a method after all event rendering has taken place.  It would be great if an event/callback could be added when either all events have been rendered on the current view or when the current view has been fully loaded.  I can get around this by turning off lazy fetching, but it is in efficient.

Dec 26, 2010
Project Member #1 adamrs...@gmail.com
i don't see why this couldn't be implemented
Summary: trigger after all events have been rendered
Status: Accepted
Dec 31, 2010
Project Member #2 adamrs...@gmail.com
 Issue 756  has been merged into this issue.
Jan 4, 2011
#3 mark.luh...@gmail.com
Adam,
I know everyone has their own agenda and needs.  I am interested in the following issues 753, 144, 153 and was wondering if any of these will get your attention sooner rather than later.

Thanks for all your work on this plugin, it is really great.

Mark
Jan 27, 2011
#4 drj...@gmail.com
I too would appreciate a fullcalendar callback method executed after the calendar and all events have been rendered. This seems like an obvious inclusion.

Thanks
Feb 3, 2011
#5 bpde...@gmail.com
Pending the release of this update I have found that adding a function call at the bottom of 'renderEvents' seems to handle this requirement. Am I missing anything obvious in doing this if I want to do something after all events have been rendered?

BTW - thank you very much for this excellent plugin
Feb 4, 2011
Project Member #6 althaus.it
>Am I missing anything obvious in doing this if I want to do something after all events have been rendered?
Not from my point of view. :)

Feb 6, 2011
#7 rol...@liebl.ath.cx
I'm waiting for this really urgently.

Could it be implemented in an official release?

Due to the policies I have to consider, I'm not allowed to use modified source code of the plugin.

Thanks!
Feb 9, 2011
#8 rol...@liebl.ath.cx
This feature is implemented very easy. The approach of bpde...
does not work for agenda views.

Three steps to implement it based on v1.4.10:

#1 - Add a callback function when initializing the calendar:
    $('#calendar').fullCalendar({
      readyState: function(){
       alert('do something');
    ...

#2- Add after line 2818:

  //find me
  readyState = opt('readyState');

#-3 Add after line 2935:
  // find me
  trigger('readyState');
Feb 9, 2011
#9 rol...@liebl.ath.cx
Missed to mention step #4:

Line 3825:

//find me
trigger('readyState');
Mar 1, 2011
#11 H...@time-trax.org
I'd like to see a readyState hook as well; my usecase: display a list, containing the events of a month; this list is refreshed only when the current month contains events, and it contains the events of the whole month even in agendaDay or agendaWeek view.
Of course I tried the "loading" callback, but it doesn't work (the events are not available via the documented interface yet).

BTW, for my usecase it would be useful to be able to force the calendar to fetch the whole month, even if not all of it is rendered.

(Thanks, rol..., for the How-To!)
May 8, 2011
Project Member #12 adamrs...@gmail.com
 Issue 912  has been merged into this issue.
May 24, 2011
#13 pdr...@allplayers.com
I just submitted pull request 24 (https://github.com/arshaw/fullcalendar/pull/24) as a possible solution to this issue.
Aug 13, 2013
Project Member #14 adamrs...@gmail.com
sorry, forgot to update this thread. released a while ago:

http://arshaw.com/fullcalendar/docs/event_rendering/eventAfterAllRender/
Status: Released
Labels: -Type-Enhancement Type-Feature