| Issue 2433: | gotoDate with multiple calendars on 1 page | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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 18, 2015
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
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
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
recreated, thanks
Status:
Accepted
Feb 20, 2015
Implemented but not yet released fix: https://github.com/arshaw/fullcalendar/commit/4921ae94e88a0f8296dae0ded6b8bfbb9dc66758 test: https://github.com/arshaw/fullcalendar/commit/7c13d7cb07c0e8603771139e5cb329ba3cf0e4b2
Status:
Implemented
Feb 21, 2015
This has been released. Thanks! https://github.com/arshaw/fullcalendar/releases/tag/v2.3.0
Status:
Released
|
|
| ► Sign in to add a comment |
Labels: Type-Bug