Back to Devexpress

LoadingPanelSettings.ContainerElementID Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-loadingpanelsettings-f0b90a57.md

latest1.9 KB
Original Source

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public string ContainerElementID { get; set; }
vb
Public Property ContainerElementID As String

Property Value

TypeDescription
String

A String value specifying the ID of the element.

|

Remarks

Define the ContainerElementID property to display the LoadingPanel above the element. If the ContainerElementID property is not defined, the LoadingPanel covers the page.

Example

View code (ASPX):

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

See Also

ContainerElementResolve

Loading Panel Visual Elements

LoadingPanelSettings Class

LoadingPanelSettings Members

DevExpress.Web.Mvc Namespace