OnBeforeDayChange?

Hi,

Is there a way I could have a handler for when in day view the day is changed? Like onBeforeMonthChange but for the day view.

Thanks.

Similarly, how can I create a handler for when the today button is clicked?

Thank you.

Hi,

try to set onItemClick for “prev” and “next” buttons:

$$("scheduler").$$("prev").attachEvent("onItemClick",onDayChanged); $$("scheduler").$$("next").attachEvent("onItemClick",onDayChanged);

The selected date can be got by $$(“scheduler”).coreData.getValue() method:

function onDayChanged(){ dhx.delay(function(){ alert($$("scheduler").coreData.getValue()); }); }

That works. Thanks