My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2433: gotoDate with multiple calendars on 1 page
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Feb 2015


Sign in to add a comment
 
Reported by netpoint...@gmail.com, Feb 4, 2015
We are making a web application where users can create theire own calendars. They should be able to create multiple calendars (all in view agendaDay) on one page. There are external events that have to be dropped on the calendars to make appointments. Everything we want to do is working like a charm! 

But we have 1 problem and we can't seem to get a solution for it.

We have a second (month) calendar (dynamicly created) and we are using this calendar to navigate between days. When a user clicks on a day we use gotoDate to change the FullCalendars day.

This is where the problem comes in. When we use gotoDate on all the calendars on the page it's not possible drop the external events on the first calendar. Dropping the events on de second or third calendar is not giving any problems.

What i have seen is that the fullCalendar gets destroyed in the renderView function in the fullcalendar.js on line 724 (version 2.2.6). After this the fullcalendar has been rendered again. 
When i uncomment the destroy the problem is solved but then ofcourse the drop event gets initialized for second time (or third, or fourth).

I'm unable to find the problem my self so wanted to create an issue for this.

See my code on: http://jsbin.com/yejacotidu/1/

Feb 9, 2015
Project Member #1 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Reproducing
Labels: Type-Bug
Feb 18, 2015
#2 netpoint...@gmail.com
I noticed that the jsbin link has expired so i created a new one with an account.

http://jsbin.com/pubelo/1/
Feb 18, 2015
#3 netpoint...@gmail.com
Problem turns out to be in "var Grid = fc.Grid = RowRenderer.extend({" unbindHandlers function.

Because the seconds calendar is calling the unbindHandler after the first calendar called the bindHandlers the dragstart has been removed and only applied once (to the last calendar).

Haven't found a solution tho...
Feb 18, 2015
#4 netpoint...@gmail.com
Got a work around for now.

I'm destroying both calendars. After that i initialize both calendars again with defaultDate paramater set to the chosen date.

This seems to work fine for now.
Feb 19, 2015
Project Member #5 adamrs...@gmail.com
recreated, thanks
Status: Accepted
Feb 21, 2015
Project Member #7 adamrs...@gmail.com
This has been released. Thanks!
https://github.com/arshaw/fullcalendar/releases/tag/v2.3.0
Status: Released
Sign in to add a comment

Powered by Google Project Hosting