Tab

ASPxLoadingPanel.ContainerElementID Property

Gets or sets the ID of a web control or HTML element with which the current ASPxLoadingPanel is associated.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

[DefaultValue("")]
public string ContainerElementID { get; set; }

Property Value

Type Default Description
String

String.Empty

A string value specifying the ID of the web control or HTML element which the ASPxLoadingPanel is associated with.

Remarks

Define the ContainerElementID property to display the ASPxLoadingPanel in the center of the web control or the HTML element. If the ContainerElementID property is not defined, the ASPxLoadingPanel covers the page and is displayed in the center.

NOTE

If the ContainerElementID property has an incorrect value (is set to empty string or null), the loading panel is displayed in the <body> tag.

<dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" runat="server"
  ClientInstanceName="lPanel" ContainerElementID="myDiv" Modal="True" ...>
</dx:ASPxLoadingPanel>

<div style="width:500px; height:300px; border: 1px solid red;" id="myDiv">
TEST
</div>
<dx:ASPxButton ID="ASPxButton1" runat="server" Text="ASPxButton" 
    AutoPostBack="False">
    <ClientSideEvents Click="function(s, e) {
          lPanel.Show();
    }" />
</dx:ASPxButton>
See Also