How to write Custom Javascript for Next, Before actions

I need to write a custom javascript for after any changes in calendar,
example if click Next ,Prev buttons, changing view (day,month,Year) then i need to call that custom javacript. i tryed lots of custom events but not working. what is the event i can use for that?

i already use onEventLoading,onEventCreated,onBeforeSectionRender,onAfterEventDisplay
but no one work like i expect

Hi,
you need to add listeners to onViewChange or onBeforeViewChange events
docs.dhtmlx.com/scheduler/api__s … event.html
docs.dhtmlx.com/scheduler/api__s … event.html