Reputation: 3008
im using fullcalendar jquery plugin in my web. i have a problem in which after adding a new event to calendar , i have to press some View button in order to render my event to the calendar.
var myEvent = {
title: subject.toString(),
start: d1,
};
$("#calendar").fullCalendar( 'renderEvent', myEvent, true );
$("#calendar").fullCalendar( 'rerenderEvents' );
suggestions? Thanks.
Upvotes: 1
Views: 2403
Reputation: 5621
Looks like you have the calendar in a hidden DIV. If you add the render/rerender calls to the function that shows/unhides this DIV, then the events should render correctly.
Upvotes: 1