rerendering events in fullCalendar after Ajax database update

后端 未结 7 748
渐次进展
渐次进展 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:46

    What works for me:

    success: function(text) {
                    setTimeout(function(){
                        $("#calendar").fullCalendar("rerenderEvents");
                    },50);
                }
    

    If I do it directly without timeout it does not work, probable due to the $element.fullCalendar variable not yet set completely?

提交回复
热议问题