aspnet-devexpress-dot-web-dot-aspxloadingpanel-b7c578be.md
Gets or sets whether the ASPxLoadingPanel is displayed in modal mode.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(false)]
public bool Modal { get; set; }
<DefaultValue(False)>
Public Property Modal As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the ASPxLoadingPanel is displayed in modal mode; otherwise, false.
|
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.
<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