the Forum

Removing all eventSources in jQuery FullCalendar plugin

Posted on June 14, 2011 by Michael Rosario
Total Posts: 33  |  Join date: 03-12-11

I'm trying to remove all the event sources in the fullcalendar plugin. I'm currently using a combination of
removeEvents (method)
removeEventSource (method)
addEventSource (method
I was hoping there is a .replaceEventSource(), wishful thinking. Here is my current code:
$('#Calendar')
.
fullCalendar('removeEvents'//Hide all events
.fullCalendar'removeEventSource',$('.Source').val()) //remove eventSource from stored hidden input
.fullCalendar'addEventSource'newSource); //Add a new source 
It's just a matter of time. Any help would be nice.

Tags: There are no tags for this entry.

There are no answers yet.  Add yours below.

add your answers here
comments powered by Disqus