views:

94

answers:

1

Hi guys, I add a new event to fullcalendar, it display well, but when I go to next month and switch back, it disappear! but the old event will display, why? and How can I display all events? thanks a lot!

the detail like:

  1. I have two events: event1, event2 coming from a database and when FullCalendar initializes, I add them to the Calendar, displays well.
  2. Then I add aother event: event3 to calendar, can display well.
  3. go to next month
  4. switch back, I find only event1 and event2 displayed, and event3 disappeared?

does anyone can help me? thanks!

+1  A: 

sounds like you could use the renderEvent method with the 'stick' parameters: http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/

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

arshaw