refetchEvents for multiple specific sources
See original GitHub issueHi,
I’m using both regular and background events on my calendar. Background events are used to highlight forbidden places for regular events, and are updated dynamically whenever such an event is selected (eventClick()
or eventDragStart()
callbacks) via the method ‘refetchEvents
’.
In the case of a click, everything works well. In the case of a drag however, the ‘refetchEvents
’ causes the selected event to be refetched as well, thus leading to graphical glitches (event displayed twice, initial event not moving, …).
The best workaround I found for this issue is to set a global property to prevent that the event is displayed (in the eventRender()
callback) while it is dragged, and then in the eventDrop()
callback I can manually update its start and end times according to delta. This is a ugly hack and it doesn’t solve all bugs in my application.
A much simpler solution to that would be to allow to refetch events from a single source, leaving other events unchanged, but I don’t think this is possible with the current API.
Is there something I am missing?
Thanks in advance
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (6 by maintainers)
Top GitHub Comments
Released in v2.8.0.
http://fullcalendar.io/docs/event_data/refetchEventSources/
Great job, thanks @caseyjhol for the hard work!