| Issue 1439: | AddEventSource when calendar contained in div with style="display:none" --> doesn't work | |
| 2 people starred this issue and may be notified of changes. | Back to list |
I would like to call addEventSource while the calendar is not visible. This is not working since when I call rerendEvents, eventually ClearEvents() is invoked, but in that routine the line at 2627: getDaySegmentContainer().empty() fails since getDaySegmentContainer is undefined. here's a link to the full example: http://barebones.ca/fullcalendar%20test/fullcalendarexample.html Below is a snippet of the code The error comes about if the div "Content" has "style=display:none" ... $('#calendar').fullCalendar({ header: { }, }); $('#calendar').fullCalendar ('addEventSource', eventList); $('#content').show(); $('#calendar').fullCalendar ('rerenderEvents'); }); </script> </head> <body> <div id='content' style="display: none"> <div id='calendar'></div> </div> </body>
Aug 18, 2013
(No comment was entered for this change.)
Status:
Done
Apr 15, 2014
Hi, just wondering if this was supposed to have made it to 1.6.4? It was released 9/1/2013, but I am still getting this error and from the source code, it looks like there's no logic to guard against this. Related to https://github.com/arshaw/fullcalendar/pull/129 |
|
| ► Sign in to add a comment |
Thanks for reporting this issue, it solved my problem. In my case I used the jquery fadein callback to be sure I can rerenderEvents without problems. $('#calContainer').fadeIn('fast', function() { $('#cal').fullCalendar('rerenderEvents'); });