WebMonthCalendar1.ClientEvents.VisibleMonthChanged = "WebMonthCalendar1_VisibleMonthChanged"
WebMonthCalendar1.ClientEvents.VisibleMonthChanged = "WebMonthCalendar1_VisibleMonthChanged";
// The client event 'VisibleMonthChanged' takes two parameters sender and e // sender is the object which is raising the event // e is theVisibleMonthChangedEventArgs function WebMonthCalendar1_VisibleMonthChanged(sender, e) { //Gets the new date var newDate = e.get_date(); //Gets the old date var oldDate = e.get_oldDate(); //Gets reference to the WebMonthCalendar var calendar = $find("WebMonthCalendar1"); //Gets the date of the first day of WebMonthCalendar var visibleMonth = calendar.get_visibleMonth(); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2