Skip to main content
All docs
V25.2
  • NotificationsOptionsBase.CanAccessPostponedItems Property

    Specifies whether the Show Notifications Action remains enabled if only postponed notifications are available (no active notifications).

    Namespace: DevExpress.ExpressApp.Notifications

    Assembly: DevExpress.ExpressApp.Notifications.v25.2.dll

    NuGet Package: DevExpress.ExpressApp.Notifications

    Declaration

    public bool CanAccessPostponedItems { get; set; }

    Property Value

    Type Default Description
    Boolean false

    true, if the Show Notifications Action remains enabled if only postponed notifications are available (no active notifications); otherwise, false (default).

    Remarks

    The following example demonstrates how to specify this property:

    namespace MySolution.Blazor.Server;
    
    public class Startup {
        public void ConfigureServices(IServiceCollection services) {
            // ...
            services.AddRazorPages();
            services.AddServerSideBlazor();
            services.AddHttpContextAccessor();
            services.AddScoped<CircuitHandler, Services.Circuits.CircuitHandlerProxy>();
            services.AddXaf(Configuration, builder => {
                builder.UseApplication<MySolutionBlazorApplication>();
                // ...
                builder.Modules
                    // ...
                    .AddNotifications(options => {
                        options.CanAccessPostponedItems = true;
                        options.NotificationsRefreshInterval = TimeSpan.FromSeconds(1);
                        options.NotificationsStartDelay = TimeSpan.FromSeconds(15);
                        options.ShowDismissAllAction = true;
                        options.ShowNotificationsWindow = false;
                        options.ShowRefreshAction = true;
                    });
            });
        };
    }
    
    See Also