Fullcalendar cannot display new event when month switching

I am adding a new event to fullcalendar, it displays well, but when I go to the next month and switch back, it disappears! But the old event is clearly visible, why? How can I display all events?

Details like:

  • I have two events: event1, event2 from the database and when Initializes FullCalendar, I add them to the Calendar, it displays well.
  • Then I add another event: event3 to the calendar, can display well.
  • I am coming next month.
  • I switch back, I only find event1 and event2, and event3 disappeared?

Can anybody help me? Thank!

+3
source share
1 answer

, renderEvent "stick": http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/

$('# calendar'). fullCalendar ('renderEvent', {...}, true);

+8

Source: https://habr.com/ru/post/1741726/


All Articles