rerendering events in fullCalendar after Ajax database update

后端 未结 7 763
渐次进展
渐次进展 2020-12-08 01:13

I am trying to have fullCalendar reflect changes made to a database via AJAX. The problem is that it won\'t update the calendar on screen after a successful AJAX call.

7条回答
  •  不知归路
    2020-12-08 01:34

    This is what works in ASP.NET CORE, MVC 6 :

     success: function(events)
     {
            $('#calendar').fullCalendar('rerenderEvents');
            $('#calendar').fullCalendar('refetchEvents');
     }
    

    while this was working in ASP.NET MVC 5:

     success: function(events)
     {
           $('#calendar').fullCalendar('refetchEvents');
     }
    

提交回复
热议问题