Back to Devexpress

ASPxLoadingPanel.Modal Property

aspnet-devexpress-dot-web-dot-aspxloadingpanel-b7c578be.md

latest1.8 KB
Original Source

ASPxLoadingPanel.Modal Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool Modal { get; set; }
vb
<DefaultValue(False)>
Public Property Modal As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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 hidden by the code.

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

Loading Panel

ASPxLoadingPanel Class

ASPxLoadingPanel Members

DevExpress.Web Namespace