Back to Devexpress

ASPxLoadingPanel.ContainerElementID Property

aspnet-devexpress-dot-web-dot-aspxloadingpanel-2e16cd56.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string ContainerElementID { get; set; }
vb
<DefaultValue("")>
Public Property ContainerElementID As String

Property Value

TypeDefaultDescription
StringString.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.

aspx
<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

ContainerElementResolve

Loading Panel

ASPxLoadingPanel Class

ASPxLoadingPanel Members

DevExpress.Web Namespace