| Issue 753: | trigger after all events have been rendered | |
| 7 people starred this issue and may be notified of changes. | Back to list |
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 31, 2010
Issue 756 has been merged into this issue.
Jan 4, 2011
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
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
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
>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
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
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
Missed to mention step #4:
Line 3825:
//find me
trigger('readyState');
Mar 1, 2011
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
Issue 912 has been merged into this issue.
May 24, 2011
I just submitted pull request 24 (https://github.com/arshaw/fullcalendar/pull/24) as a possible solution to this issue.
Aug 13, 2013
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 |
|
| ► Sign in to add a comment |
Status: Accepted