Skip to main content
A newer version of this page is available. .
Tab

SettingsLoadingPanel.Enabled Property

Gets or sets a value that specifies whether a loading panel is displayed while waiting for a callback response.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public virtual bool Enabled { get; set; }

Property Value

Type Default Description
Boolean **true**

true if the loading panel functionality is enabled; otherwise, false.

Property Paths

You can access this nested property as listed below:

Show 132 property paths
Library Object Type Path to Enabled
ASP.NET Controls and MVC Extensions ASPxAutoCompleteBoxBase
ASPxCalendar
ASPxCallbackPanel
ASPxCaptcha
.LoadingPanel .Enabled
ASPxCardView
ASPxComboBox
ASPxDataView
ASPxDataViewBase
ASPxDockPanel
ASPxFileManager
ASPxFilterControl
ASPxGaugeControl
ASPxGridView
ASPxHtmlEditor
ASPxHtmlEditorRoundPanel
HtmlEditorFileManager
ASPxImageGallery
ASPxListBox
ASPxMenu
ASPxMenuBase
ASPxNavBar
ASPxNewsControl
ASPxPageControl
ASPxPivotGridPopupMenu
PivotGridDataAreaPopup
ASPxPopupControl
ASPxPopupControlBase
ASPxPopupMenu
RichEditFileManager
RichEditFolderManager
ASPxRoundPanel
ASPxScheduler
ASPxSchedulerPopupForm
ASPxSchedulerPopupMenu
ASPxSpellChecker
ASPxSpreadsheet
ASPxTitleIndex
ASPxTokenBox
ASPxTreeList
ASPxTreeView
ASPxVerticalGrid
GridViewContextMenu
GridViewProperties
WebChartControl
ASP.NET Bootstrap Controls BootstrapAccordion
BootstrapCalendar
BootstrapCallbackPanel
BootstrapCardView
BootstrapComboBox
BootstrapFileManager
BootstrapGridView
BootstrapListBox
BootstrapMenu
BootstrapMenuBase
BootstrapPageControl
BootstrapPopupControl
BootstrapPopupMenu
BootstrapScheduler
BootstrapSchedulerPopupMenu
BootstrapSpreadsheet
BootstrapTagBox
BootstrapToolbar
BootstrapTreeView
Reporting ASPxDocumentViewer
ReportDocumentMap
ReportViewer
ASP.NET MVC Extensions AutoCompleteBoxBaseSettings
CalendarSettings
CallbackPanelSettings
CaptchaSettings
.LoadingPanel .Enabled
CardViewSettings
CardViewSettings<CardType>
ChartControlSettings
ComboBoxSettings
DataViewSettings
DataViewSettingsBase
DockPanelSettings
DocumentViewerSettings
FileManagerSettings
GridViewSettings
GridViewSettings<RowType>
HtmlEditorSettings
ImageGallerySettings
ListBoxSettings
MVCxCalendar
MVCxCallbackPanel
MVCxCaptcha
.LoadingPanel .Enabled
MVCxCardView
MVCxChartControl
MVCxComboBox
MVCxDataView
MVCxDockPanel
MVCxDocumentViewer
MVCxFileManager
MVCxFilterControl
MVCxFilterControlSettings
MVCxFilterControlSettings<RowType>
MVCxGridView
MVCxGridViewContextMenu
MVCxGridViewProperties
MVCxHtmlEditor
MVCxHtmlEditorSpellChecker
MVCxImageGallery
MVCxListBox
MVCxMenu
MVCxNavBar
MVCxPageControl
MVCxPopupControl
MVCxPopupMenu
MVCxReportViewer
MVCxRoundPanel
MVCxScheduler
MVCxSpellChecker
MVCxSpreadsheet
MVCxTokenBox
MVCxTreeList
MVCxTreeView
MVCxVerticalGrid
NavBarSettings
PageControlSettings
PopupControlSettings
PopupControlSettingsBase
RoundPanelSettings
SchedulerSettings
SpellCheckerSettings
SpreadsheetSettings
TokenBoxSettings
TreeListSettings
TreeListSettings<RowType>
TreeViewSettings
VerticalGridSettings
VerticalGridSettings<ColumnType>

Example

The ASPxCallbackPanel control provides a built-in loading panel, however you can implement a custom one. For this purpose, the default panel is hidden by setting the Enabled property to false. The custom panel is implemented using the ASPxLoadingPanel control. The callback panel’s BeginCallback and EndCallback client-side events are used to show and hide the loading panel respectively. Additionally, this example demonstrates how to add, modify, and hide controls in the ASPxCallbackPanel control in the Callback event handler.

View Example

<style>
    .sendCommentBlock {
        margin: 20px 0;
    }

    .comment {
        border-bottom: 1px dashed #888888;
    }
</style>
<script>
    function SendCommentCallback(s, e) {
        CallbackPanel.PerformCallback();
    };

    function OnBeginCallback(s, e) {
        LoadingPanel.Show();
    };

    function OnEndCallback(s, e) {
        LoadingPanel.Hide();
    };
</script>
<dx:ASPxButton ID="Button" runat="server" Text="Post Comment" AutoPostBack="false">
    <ClientSideEvents Click="SendCommentCallback" />
</dx:ASPxButton> 
<br />
<br />
<dx:ASPxTextBox ID="TextBox" runat="server" Width="170px"></dx:ASPxTextBox>
...
<dx:ASPxCallbackPanel ID="CallbackPanel" ClientInstanceName="CallbackPanel" 
    runat="server"
    CssClass="pnl"
    Width="300px"
    OnCallback="CallbackPanel_Callback"
    OnInit="CallbackPanel_Init">
    <SettingsLoadingPanel Enabled="false" />
    <ClientSideEvents BeginCallback="OnBeginCallback" EndCallback="OnEndCallback" />
    <PanelCollection>
        <dx:PanelContent>
            <dx:ASPxLabel ID="CountLabel" runat="server" Text="Comments Count : "></dx:ASPxLabel>
            <br />
            <br />
            <dx:ASPxLabel ID="NoCommentsLabel" runat="server" Text="No Comments" ForeColor="Gray"></dx:ASPxLabel>
        </dx:PanelContent>
    </PanelCollection>
</dx:ASPxCallbackPanel>
...
<dx:ASPxLoadingPanel ID="LoadingPanel" ClientInstanceName="LoadingPanel"
    runat="server"
    Modal="true"
    HorizontalAlign="Center"
    VerticalAlign="Middle">
    <Image Url="Images/load.gif" Height="50px" Width="50px"></Image>
</dx:ASPxLoadingPanel>
See Also