MonthCalendar.SelectWeek

Syntax

SelectWeek: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The SelectWeek event occurs when selecting the week in the calendar.

Example

To execute the example, place the MonthCalendar and DateTimeEdit components in HTML page (see MonthCalendar.SelectDay event). Set the DateTimeEdit.Mode property to 1. Add the SelectWeek event handler:

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

{

      DTE.setCurrentDate(MC.getCurrentDate())

})

After executing the example on double click on the number in the week mode the week value in the date editor is changed.

See also:

MonthCalendar