Skip to main content

ASPxClientPopupControl.CloseButtonClick Event

Occurs when a user clicks the popup window’s close button.

Declaration

CloseButtonClick: ASPxClientEvent<ASPxClientPopupWindowEventHandler<ASPxClientPopupControl>>

Event Data

The CloseButtonClick event's data class is ASPxClientPopupWindowEventArgs. The following properties provide information specific to this event:

Property Description
window Gets the popup window object related to the event.

Remarks

Handle the CloseButtonClick event to perform specific actions on the client side when a user clicks the close button.

The following example illustrates how to handle the CloseButtonClick client-side event.

<dx:ASPxPopupControl>
    // ...
    <ClientSideEvents CloseButtonClick="popup_CloseButtonClick" />
</dx:ASPxPopupControl>

<script type="text/javascript">
    function popup_CloseButtonClick(s,e) {
        if (e.window.name == 'window1') {
            // your logic
        }
    }
</script>

Online Demos

See Also