Issue 415: Enable limiting of months to display
Status:  Duplicate
Merged:  issue 158
Owner: ----
Closed:  Mar 2010
Reported by m...@leapfrogdesign.co.nz, Mar 22, 2010
I have a need to limit the use of the calendar to four months in 2011.
After looking through the documentation and the js file, I dont think this
is currently possible. 
As a quick fix, does anyone have any ideas?
Thanks.

Mar 30, 2010
Project Member #1 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 158
Jul 15, 2013
#2 FARAZFRANK777
I was searching for it. And found a doable code, may this help you and others bcoz its working perfect for me.

jQuery('#edit-calendar').fullCalendar({
    viewDisplay   : function(view) {
      var now = new Date(); 
      var end = new Date();
      end.setMonth(now.getMonth() + 11); //Adjust as needed

      var cal_date_string = view.start.getMonth()+'/'+view.start.getFullYear();
      var cur_date_string = now.getMonth()+'/'+now.getFullYear();
      var end_date_string = end.getMonth()+'/'+end.getFullYear();

      if(cal_date_string == cur_date_string) { jQuery('.fc-button-prev').addClass("fc-state-disabled"); }
      else { jQuery('.fc-button-prev').removeClass("fc-state-disabled"); }

      if(end_date_string == cal_date_string) { jQuery('.fc-button-next').addClass("fc-state-disabled"); }
      else { jQuery('.fc-button-next').removeClass("fc-state-disabled"); }
    }
});


Best Regards
~Frank