New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnPopupClosing
Updated over 6 months ago
The OnPopupClosing client-side event handler is called just before a popup calendar is closed.
The event handler receives two arguments:
- 
the object that fired the event. 
- 
an event arguments object that exposes the following methods:OnPopupClosing event arguments object 
| Name | Return Type | Arguments | Description | 
|---|---|---|---|
| get_popupControl() | Calendar client-side object | Returns the client object for the time view or calendar that is about to close. | |
| set_cancel(value) | bool | Lets you prevent the popup from closing. | 
The following example demonstrates the OnPopupClosing event:
ASPX
<telerik:RadDateRangePicker RenderMode="Lightweight" ID="RadDateRadPicker1" runat="server">
    <ClientEvents OnPopupClosing="popupClosing" />
</telerik:RadDateRangePicker>JavaScript
function popupClosing(sender, args) {
    alert("popup is closing");
}Check out sample use of this event in the Client-Side Events demo