Version

ListOpening Property

Gets sets name of javascript function which is called before list of months, years or year groups is opened or list of years is updated with next range.
Syntax
'Declaration
 
Public Property ListOpening As String
public string ListOpening {get; set;}
Remarks

Open-list action can be canceled.

Note: that event should not be interrupted by alert, confirm or similar action, which may break default order or timing of focus and other events of browser.

Example
WebMonthCalendar1.ClientEvents.ListOpening = "WebMonthCalendar1_ListOpening"
WebMonthCalendar1.ClientEvents.ListOpening = "WebMonthCalendar1_ListOpening";
// The client event 'ListOpening' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the CalendarListOpeningEventArgs
function WebMonthCalendar1_ListOpening(sender, e) {


    //Gets the id of the list; 1 – list of Months , 2 – list of Years, 3 – list of Decades. 
    var listId = e.get_id();

    if (!confirm("Are you sure you want to open the list?"))

    //Cancels the 'ListOpening' event.
    e.set_cancel(true);

}
Requirements

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

See Also