Ori Refael
Ori Refael

Reputation: 3008

After adding new event to full calendar, event not rendered

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

Answers (1)

ganeshk
ganeshk

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

Related Questions