DHTMLX Docs & Samples Explorer

onShow

Fires when the calendar becomes visible (useful when attached to an input)

myCalendar.attachEvent("onShow", function(){
    // your custom code
});