I want to load all events on FullCalendar using AJAX when I clicked next-previous-button in agenda-views.
agenda-views
I guess, when will click on
There is a built in option avaliable
var calendar = new FullCalendar.Calendar(calendarEl, { events: '/myfeed.php' })
more details https://fullcalendar.io/docs/events-json-feed