My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 158: Restrict date range
29 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----


Sign in to add a comment
 
Reported by naterow...@gmail.com, Oct 30, 2009
Is there a way to restrict the viewable dates, i.e. next 2 years only?
Nov 10, 2009
Project Member #1 adamrs...@gmail.com
this would be useful. will probably implement it similar to jqueryui:
http://docs.jquery.com/UI/Datepicker#option-maxDate

can't say *when* i will get to it though.
thanks,
adam
Status: Accepted
Labels: -Type-Defect Type-Enhancement
Nov 10, 2009
Project Member #2 adamrs...@gmail.com
 Issue 161  has been merged into this issue.
Nov 10, 2009
Project Member #3 adamrs...@gmail.com
just merged 2 issues. thanks for ideas
Dec 3, 2009
Project Member #4 adamrs...@gmail.com
 Issue 223  has been merged into this issue.
Feb 26, 2010
Project Member #5 adamrs...@gmail.com
 Issue 339  has been merged into this issue.
Mar 30, 2010
Project Member #6 adamrs...@gmail.com
 Issue 415  has been merged into this issue.
Nov 21, 2010
Project Member #7 adamrs...@gmail.com
 Issue 675  has been merged into this issue.
Mar 31, 2011
#8 Meats...@gmail.com
Until this is officially supported, anyone finding this issue you can mess around with the 'renderView' function to add this (around line 370 in fullcalendar.js v1.5).

I had to disable the previous button once a particular month was hit and I did this by placing the following after the 'today' button handling in the function:

var minDate =new Date(2011, 2, 1, 0, 0, 0, 0);
if (currentView.start <= minDate){
  header.disableButton('prev');
} else {
  header.enableButton('prev');
}

Should be able to modify this easily to disable the next button for dates 2+ years in the future...
Dec 8, 2011
#9 jianwei....@gmail.com
This is a very good suggestion, thank you making this suggestion and it helped me create a work around for a problem I have.

By the way, this is really great jquery date control.
Dec 8, 2011
#10 jianwei....@gmail.com
This is a very good suggestion, thank you making this suggestion and it helped me create a work around for a problem I have.

By the way, this is really great jquery date control.
Aug 13, 2013
Project Member #11 adamrs...@gmail.com
(No comment was entered for this change.)
Summary: Restrict date range (was: restrict date range)
Labels: -Type-Enhancement -Priority-Medium Type-Feature
Aug 14, 2013
Project Member #12 adamrs...@gmail.com
 Issue 1251  has been merged into this issue.
Aug 15, 2013
Project Member #13 adamrs...@gmail.com
 Issue 1274  has been merged into this issue.
Aug 15, 2013
Project Member #14 adamrs...@gmail.com
 Issue 1315  has been merged into this issue.
Aug 18, 2013
Project Member #15 adamrs...@gmail.com
 Issue 1449  has been merged into this issue.
Aug 24, 2013
Project Member #16 adamrs...@gmail.com
 Issue 1810  has been merged into this issue.
Aug 25, 2013
Project Member #17 adamrs...@gmail.com
 Issue 1949  has been merged into this issue.
Jan 17, 2014
#18 jbaff...@gmail.com
PR #149 implements this feature.
Jun 5, 2014
Project Member #19 adamrs...@gmail.com
A link to the PR by @jbafford:
https://github.com/arshaw/fullcalendar/pull/149
Jul 14, 2014
Project Member #21 adamrs...@gmail.com
 Issue 161  has been merged into this issue.
Sign in to add a comment

Powered by Google Project Hosting