The afterRender event handler runs after the Calendar is rendered or refreshed in legacy api=1 mode.
DayPilot.Calendar.afterRender(data, isCallBack)data (object) - custom data sent from the server using the Update() method
isCallBack (boolean) - true if this event is called after a CallBack and false if it is called during the initial page load or PostBack
This legacy callback runs after control initialization and after later server-side updates. Use the isCallBack flag to distinguish AJAX callback refreshes from the initial page load or a PostBack.
The data parameter carries custom data passed from the server during the update. In the current JavaScript API, use DayPilot.Calendar.onAfterRender.
AfterRender [doc.daypilot.org]