The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientPopupControlBase.AfterResizing Event

Occurs on the client side when window resizing completes.

Declaration

AfterResizing: ASPxClientEvent<ASPxClientPopupWindowEventHandler<ASPxClientPopupControlBase>>

Event Data

The AfterResizing event handler receives an argument of the ASPxClientPopupWindowEventArgs type. The following properties provide information specific to this event.

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

Remarks

The ASPxClientPopupControlBase.BeforeResizing and AfterResizing events allow a window's content to be programmatically hidden/minimized and restored when the window is resized by an end-user.

These events are useful, allowing a window to be resized per end-user requirements. For instance, typically, an end-user can't resize a window to make it smaller than its content (such as an image). Now, to allow such window resizing, you can programmatically minimize or hide the window's content, by handling the ASPxClientPopupControlBase.BeforeResizing event, and restore/update the content's size according to the new size of the window within the AfterResizing event handler.

Examples

At present, ASPxPopupControl does not have the built-in capability to resize nested controls when it's resizing. This example illustrates how to automatically resize controls places inside the popup.

To accomplish this task, execute the following steps:

  1. Set the ScrollBars property to "Auto". This option will allow the popup control to evaluate the content width and height.

  2. Handle the AfterResizing event. In this event handler, call the AdjustControl method for a desired control to force it to reevaluate its size.

  3. Place the control into the <div style="height: 100%; width: 100%; overflow: hidden"> element. This element is necessary to overcome scrollbars that can be shown when ScrollBars="Auto" is set.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
}
See Also