Skip to main content
Tab

ASPxLoadingPanel.Modal Property

Gets or sets whether the ASPxLoadingPanel is displayed in modal mode.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool Modal { get; set; }

Property Value

Type Default Description
Boolean false

true if the ASPxLoadingPanel is displayed in modal mode; otherwise, false.

Remarks

When the ASPxLoadingPanel is displayed in modal mode, it retains the input focus while active. The user cannot switch focus to the page until the ASPxLoadingPanel is not hidden by the code.

<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