New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnPopupClosing
The OnPopupClosing client-side event handler is called just before a popup calendar or time view 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() | RadTimeView or RadCalendar 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 uses the OnPopupClosing event to prevent the popup from closing if nothing is selected:
ASPNET
<telerik:RadDateTimePicker RenderMode="Lightweight" ID="RadDateTimePicker1" runat="server">
<Calendar DayNameFormat="FirstLetter"
UseColumnHeadersAsSelectors="False"
UseRowHeadersAsSelectors="False">
</Calendar>
<ClientEvents OnPopupClosing="popupClosing" />
</telerik:RadDateTimePicker>