Skip to main content

Loading Panel

LoadingPanel is a panel that is displayed while a callback is processing, helping to prevent the end user from clicking away before the callback has been completed.

To see the LoadingPanel in action, refer to its online demos.

Implementation Details

LoadingPanel is realized by the LoadingPanelExtension class. Its instance can be accessed via the ExtensionsFactory.LoadingPanel helper method, which is used to add a LoadingPanel extension to a view. This method’s parameter provides access to the LoadingPanel‘s settings implemented by the LoadingPanelSettings class, allowing you to fully customize the extension.

The LoadingPanel‘s client counterpart is represented by the ASPxClientLoadingPanel object.

Declaration

The LoadingPanel can be added to a view in the following manner.

@Html.DevExpress().LoadingPanel(settings => {
    settings.Name = "LoadingPanel";
    settings.Modal = true;
    settings.ContainerElementID = IsDisplayedOverPanel ? "Panel" : "";
}).GetHtml()

The code result is demonstrated by the image below.

LoadingPanel - Declaration