Skip to main content
Tab

ASPxPopupControlBase.MaxWidth Property

Gets or sets the maximum width of a control’s window.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(typeof(Unit), "")]
public Unit MaxWidth { get; set; }

Property Value

Type Default Description
Unit String.Empty

A Unit object that defines the maximum width of a control’s window.

Remarks

If window resizing is allowed (the ASPxPopupControlBase.AllowResize property is set to true) end-users can change a window’s size. You can use the ASPxPopupControlBase.MinHeight, ASPxPopupControlBase.MaxHeight, ASPxPopupControlBase.MinWidth, and MaxWidth properties, to specify window size constraints, limiting the window resizing capability of end-users.

Note

For ASPxPopupControl only:

To specify the maximum width to which an end-user can resize the particular window, use the PopupWindow.MaxWidth property.

Example

This example illustrates how to customize an ASPxPopupControl’s setting container using particular properties.

<dx:ASPxButton ID="btn" runat="server" Text="Show PopUp" AutoPostBack="false">
    <ClientSideEvents Click="function (s,e) {popup.Show();}" />
</dx:ASPxButton>

<dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" ClientInstanceName="popup" PopupElementID="btn"
    DragElement="Window" HeaderText="Directed by: Ridley Scott" MaxHeight="600px"
    MaxWidth="600px" MinHeight="100px" MinWidth="210px" CloseAction="MouseOut" PopupAction="MouseOver" 
    AppearAfter="4000" DisappearAfter="4000" Top="20" Left="80" AllowResize="true" AllowDragging="true"
    ResizingMode="Postponed" SaveStateToCookies="true">
    <CloseButtonImage Url="Images/close.png" AlternateText="No image" />
    <ContentStyle ForeColor="#666677" Font-Names="Tahoma" Font-Size="10px" />
    <ContentCollection>
        <dx:PopupControlContentControl runat="server">
            <div>
                When a Roman general is betrayed and his family murdered by a corrupt prince, he
                comes to Rome as a gladiator to seek revenge.</div>
        </dx:PopupControlContentControl>
    </ContentCollection>
</dx:ASPxPopupControl>
See Also