Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to refresh Event data in Jquery fullcalendar

Im Trying to reload my event data(JSON) when the viewDisplay function is called, not to sure how I call it tho?

$('#calendar').fullCalendar({

            defaultView: '@Model.ScheduleView',
            editable: true,
            events: '/Schedule/GetSchedule',

            viewDisplay:function (view) {
                if (view.name == "resourceDay") {
//Call refresh of events to fire ('/Schedule/GetSchedule') <---- This line
}
}
like image 890
D-W Avatar asked May 29 '13 20:05

D-W


1 Answers

You can use the refetchEvents() function:

http://arshaw.com/fullcalendar/docs/event_data/refetchEvents/

like image 188
Filippos Karapetis Avatar answered Nov 15 '22 08:11

Filippos Karapetis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!