| Issue 2444: | Method to force fresh rerendering of view | |
| 3 people starred this issue and may be notified of changes. | Back to list |
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
Feb 21, 2015
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
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
|
|
| ► Sign in to add a comment |