My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 202: Want to Bind the data for Next and Previous Month
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Dec 2009


Sign in to add a comment
 
Reported by itssh...@gmail.com, Nov 20, 2009
The events are displaying correctly in the Calender for the current month
and also i cannot able to bind the data for the next month or previous month 
so please help me on that.

Thanks

Shanmugam.S
Nov 21, 2009
Project Member #1 adamrs...@gmail.com
hello, what do you mean by 'bind'?
Dec 11, 2009
#2 koz...@gmail.com
Either supply all the calendar in a variable, static list, or preferably do an ajax
call to your database based on the "start" and "end" range returned by the view.  

See the "events" JSON example on this page (the first code block):

http://arshaw.com/fullcalendar/docs/events-and-sources.php

The calendar app will fire this method each time the calendar view changes beyond the
initial view range.  So, if you show the month view by default, this events method
will set the start and end to the dates that are showing in that view. Example for
December 2009, the "start" is the upper left box showing November 29th 2009 and the
"end" is January 9, 2010, so the ajax request will have the paramaters of the "start"
and "end" and your response should be within that range.  When the calendar view is
changed and the view contains dates beyond that range, then the calendar will fire
the refetch again, and your server will respond with the requested range in the same
ajax call.
Dec 20, 2009
Project Member #3 adamrs...@gmail.com
good explanation kozefx. itsshans, im closing the issue, but respond to this thread
if you have any more questions
Status: Done
Sign in to add a comment

Powered by Google Project Hosting