MonthCalendar.CurrentDateChanged

Syntax

CurrentDateChanged: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The CurrentDateChanged event occurs on changing the current date using the CurrentDate property.

Example

To execute the example, create the MonthCalendar component (see Example of Creating the MonthCalendar Component). Create the variable that contains the date:

var date = new Date(2000, 10, 10, 10, 0, 0, 0);

Add the CurrentDateChanged event handler:

MC.CurrentDateChanged.add(function (sender, args)

{

          alert("Date was changed")

})

Input to the browser console:

MC.setCurrentDate(date);

Press the ENTER key. The date in the component is changed, the Date was changed message is displayed.

See also:

MonthCalendar