Skip to main content

LoadingPanelSettings.ContainerElementID Property

Gets or sets the ID of an element with which the current LoadingPanel is associated.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v26.1.dll

Declaration

public string ContainerElementID { get; set; }

Property Value

Type Description
String

A String value specifying the element ID.

Remarks

Define the ContainerElementID property to display the LoadingPanel 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 LoadingPanel covers the page.

Example

View code (ASPX):

<%
     Html.DevExpress().LoadingPanel(
          settings => {
               settings.Name = "LoadingPanel";
               settings.Modal = true;
               settings.ContainerElementID = IsDisplayedOverPanel ? "Panel" : "";
     })
     .Render();
%>
See Also