Skip to main content
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.v26.1.dll

Declaration

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

Property Value

Type Default Description
String String.Empty

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

Remarks

Define the ContainerElementID property to display the ASPxLoadingPanel over the specified element. Depending on page structure and CSS stacking contexts, the loading panel may not cover elements rendered outside its contained context.

If the ContainerElementID property is not defined, the ASPxLoadingPanel is displayed over page content.

Note

If the ContainerElementID property has an incorrect value (is set to an empty string or to 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