Events Overview
TheRadDatePickercontrol supports a number of client-side events that let you respond to user actions without a postback. The following table lists the various client events, and which controls they apply to:
Event | Applies to | Description |
---|---|---|
OnDateSelected | RadDatePicker | Occurs immediately after the value of the control's selection has been changed. |
OnPopupOpening | RadDatePicker | Occurs immediately before a popup is displayed, before the selection in the popup is synchronized with the input area. |
OnPopupClosing | RadDatePicker | Occurs immediately before the a popup is closed. |
The embeddedRadDateInputobject that is used byRadDatePickeralso has number of client-side events. See theRadInputdocumentation for details.
To use these events, simply write a JavaScript function that can be called when the event occurs. Then assign the name of the JavaScript function as the value of the the corresponding property.
function popupOpening(sender, args) { alert("popup is opening"); }