aspnet-devexpress-dot-web-2a4773dd.md
An ASPxLoadingPanel control.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public class ASPxLoadingPanel :
ASPxWebControl
Public Class ASPxLoadingPanel
Inherits ASPxWebControl
The ASPxLoadingPanel is a panel with text and image. An end user can display and hide it when it is required (for example, while a callback is being processed on the server side).
The ASPxLoadingPanel control is available on the DX.25.2: Navigation & Layout toolbox tab in the Microsoft Visual Studio IDE.
Drag the control onto a form and customize the control’s settings, or paste the control markup in the page’s source code.
<dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" runat="server" Text="Loading...">
</dx:ASPxLoadingPanel>
using DevExpress.Web;
...
protected void Page_Load(object sender, EventArgs e) {
ASPxLoadingPanel panel = new ASPxLoadingPanel();
panel.ID = "ASPxLoadingPanel1";
form1.Controls.Add(panel);
panel.Text = "Loading...";
}
Imports DevExpress.Web
...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim panel As ASPxLoadingPanel = New ASPxLoadingPanel()
panel.ID = "ASPxLoadingPanel1"
form1.Controls.Add(panel)
panel.Text = "Loading..."
End Sub
Note
DevExpress controls require that you register special modules, handlers, and options in the Web.config file. You can change this file or switch to the Design tab in the Microsoft Visual Studio IDE to automatically update the Web.config file. Note that this information is automatically registered if you use the DevExpress Template Gallery to create a project.
The ASPxLoadingPanel ‘s client-side API is implemented with JavaScript language and exposed by the ASPxClientLoadingPanel object.
|
Availability
|
Available by default.
| |
Client object type
|
| |
Access name
|
ASPxLoadingPanel.ClientInstanceName
| |
Events
|
ASPxLoadingPanel.ClientSideEvents
|
You can display the loading panel over the entire page or a specified HTML element (ContainerElementID).
<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>
You can display the loading panel in modal mode (ASPxLoadingPanel.Modal). In this mode, the loadting panel retains the input focus while active. The user cannot switch focus to the page until the loading panel is hidden by the code. In modal mode, the loading panel covers the entire page behind it (or just the element specified via the ASPxLoadingPanel.ContainerElementID property) with a specific Loading DIV element.
<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>
The control’s appearance can be customized via specific style properties, or by assigning a CSS class.
You can provide custom content for the loading panel (ASPxLoadingPanel.Template).
Show 14 items
Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxLoadingPanel MVCxLoadingPanel
See Also