Dialog for ASP.NET Web Forms includes several client-side events that allow you to manipulate the C1Dialog controls when an action such as resizing the dialog window occurs.
You can use the server-side properties, listed in the Client Side Event table, to specify the name of the JavaScript function that will respond to a particular client-side event. For example, to assign a JavaScript function called "Resize" to respond when the Dialog window is resized, you would set the OnClientResize property to "resize".
The following table lists the events that you can use in your client scripts. These properties are defined on the server side, but the actual events of the name you declare for each JavaScript function are defined on the client side.
Event Server-Side Property Name | Event Name | Description |
---|---|---|
OnClientBeforeClose | beforeClose | Occurs before the widget closes. |
OnClientClose | close | Occurs when the widget is closed. |
OnClientDrag | drag | Occurs when the widget is dragged. |
OnClientDragStart | dragStart | Occurs when dragging the widget starts. |
OnClientDragStop | dragStop | Occurs when dragging the widget stops. |
OnClientFocus | focus | Occurs when the widget gains focus. |
OnClientOpen | open | Occurs when the widget is opened. |
OnClientResize | resize | Occurs when the widget is resized. |
OnClientResizeStart | resizeStart | Occurs at the start of resizing. |
OnClientResizeStop | resizeStop | Occurs when resizing stops. |