Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Web


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.


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.


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" ...>

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