Issue 2444: Method to force fresh rerendering of view
Status:  ExportedToGithub
Owner: ----
Closed:  Aug 2015
Reported by m...@updex.ca, Feb 17, 2015
There doesn't seem to be a way to ensure that the dayRender is re-run on all days. I've asked a StackOverflow question <http://stackoverflow.com/questions/28401749/redrawing-a-fullcalendar-so-that-the-dayrender-callback-is-called> that highlights how `render` doesn't always do this. The workaround of recreating the entire calendar produces visual issues.

This is useful in my case where I am trying to change the appearance of days on the fly (applying arbitrary CSS and HTML changes to day cells). I need to be able to refresh the table (and thus calling `dayRender` again) when the source I'm watching changes (which is the same source that `dayRender` uses to determine how to render each day).
Feb 17, 2015
#1 m...@updex.ca
Current workaround that I'm using (works better than creating and recreating the calendar) is to actually iterate through all the days and call my `dayRender` function on each (pretty easy to do, since the date is conveniently stored in the HTML).

This is rather unideal since it's now apparent that I also have to handle the cleanup. Not to mention that it seems like a hacky work-around.
Feb 21, 2015
Project Member #2 adamrs...@gmail.com
As you've discovered, the 'render' method does not re-render the calendar if it has already been rendered. Its purpose is to do the initial calendar rendering if it has not already taken place, or if it has taken place, readjust the sizing if the container element's dimensions might have changed.

JSFiddle that demonstrates this fact:
http://jsfiddle.net/xr1hv4gw/2/

It sounds like you would like a *new* method that would guarantee a fresh rerendering. I'm making this feature request ticket about a possible new method called 'rerender'.

note to self: should we rerender the header when this gets called too?
Summary: Method to force fresh rerendering of view (was: Way to force dayRender to be recalled on all days)
Status: Accepted
Labels: Type-Feature
Aug 21, 2015
Project Member #3 adamrs...@gmail.com
Discussion for this issue has moved to the following URL:
https://github.com/fullcalendar/fullcalendar/issues/2709

This is because Google Code is shutting down. Apologies if you are being pestered with these notifications. This is a one-time event.

Happy coding,
Adam
Status: ExportedToGithub