Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6851751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:17:11+00:00 2026-05-27T01:17:11+00:00

I am having a problem with adding events back to the calendar after they

  • 0

I am having a problem with adding events back to the calendar after they have been removed with the removeEvent method.

I have a JSON object containing all of the calendar events a user should see. A list is populated with checkboxes to give the user the ability to show and hide events by category via the following code.

var value = $(this).val();
$('#calendar').fullCalendar('removeEvents', function(event) {
return event.subscription == value;
});

I would like to show/render the events that the user chose to hide when they re-check the appropriate box without reloading the whole page and JSON source but keep other events that are unchecked, removed.

is there a way to do this by using the same data I used to remove the events?
ie.
return event.subscription == value;

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:17:11+00:00Added an answer on May 27, 2026 at 1:17 am

    Here is the implementation I used for my app. I made a custom EventManager object that keeps a Master array of ALL my events. Separately, I tell fullCalendar which subset of those events to load in the calendar (using the ‘addEventSource’ and ‘removeEventSource’ methods).

    Hopefully this helps! 🙂

    EventManager = (function(){
    
        var rootEventSource = [];
        var filteredEventSource = [];   
    
        return {
            // Usage: EventManager.setSource([pass,event,array,here]);
            setRootSource : function(events){
                rootEventSource = events;   
            },
    
            filterCalendar : function(filterFN){
    
                $("#calendar").fullCalendar('removeEventSource',filteredEventSource);
    
                filteredEventSource = $.map(rootEventSource, function(event){
                    filterFN(event);
                });
    
                $("#calendar").fullCalendar('addEventSource', filteredEventSource); 
            }
        }; 
    })();
    
    //In your fullcalendar init code:
    $("#calendar").fullCalendar({
        //  init options
        //  go in here...
        , events: function( start, end, callback ) {
            //get events from your server, etc...
            events = some ajax function(start, end)...
    
            //store the full set of events in our Event Manager 
            EventManager.setRootSource(events); 
            //pass fullcalendar an empty array
            callback([]);
        }
    });
    
    
    //in your check/uncheck handler
    value = $(this).val();
    EventManager.filterCalendar(function(event) {
        return event.subscription == value;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a memory problem related to UIImageView. After adding this view to my
I'm having a problem adding a reference to a .NET assembly I built. Here's
i am having a problem in adding the image files to project namespace. I'm
I'm having a strange problem with adding a UINavigationController to my iPhone application. I
I'm having trouble adding a variable amount of labels to a panel. My problem
We are having problem with the server migration. We have one application that are
I have a JSON object that looks like this. [ { id : 23,
I'm having a problem using the jquery hover events. I've created a reduction of
First time poster, long time reader. I've been having a problem with figuring this
I'm having a problem adding a JPanel on top of an Image . This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.