question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

refetchEvents for multiple specific sources

See original GitHub issue

Hi,

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:closed
  • Created 8 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

0reactions
benoitmassoncommented, Jun 20, 2016

Great job, thanks @caseyjhol for the hard work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

jquery - RefetchEvents fullcalendar from single event source
I have two event sources , and i have made custom refresh button on calendar headar. I want to do refetch events only...
Read more >
How to Refetch FullCalendar Events and Resources on select ...
Customizable and open source. In this post, we will Refetch FullCalendar Events and Resources on select change event. Here are the events:.
Read more >
Calendar::refetchEvents - Docs - FullCalendar
Refetches events from all sources and rerenders them on the screen. calendar.refetchEvents(). 10% of profits donated to effective charities.
Read more >
Fullcalendar Refetch Eventsource - ADocLib
Dynamically adds an event source.Calendar::refetchEvents.Refetches events from all sources and rerenders them on the screen.EventSource::refetch.
Read more >
https://gisweb10.highpointnc.gov/js/libs/fullcalen...
link when there are too many events on a day ([304]). ... removeEvents calls with an array source ([2187]) - bug with removeEvents...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found