Skip to main content
All docs
V24.2
.NET 8.0+
  • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

SchedulerListEditor.SchedulerStorageService Property

A service that creates a DxSchedulerDataStorage object.

Namespace: DevExpress.ExpressApp.Scheduler.Blazor.Editors

Assembly: DevExpress.ExpressApp.Scheduler.Blazor.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Scheduler.Blazor

Declaration

public ISchedulerStorageService SchedulerStorageService { get; }

Property Value

Type Description
ISchedulerStorageService

An ISchedulerStorageService object.

Remarks

To access and customize a DxSchedulerDataStorage object, we recommend that you use the technique demonstrated in the following example: XAF - How to Display an Event with Custom Fields in a Scheduler List View.

Alternatively, you can implement your own ISchedulerStorageService or inherit from SchedulerStorageService as demonstrated in the following code sample:

using System;
using DevExpress.Blazor;
using DevExpress.ExpressApp.DC;
using DevExpress.ExpressApp.Scheduler.Blazor;
using DevExpress.ExpressApp.Services.Localization;
using Microsoft.Extensions.Options;
using YourApplicationName.Module.BusinessObjects;

namespace YourApplicationName.Blazor.Server;

public class CustomSchedulerStorageService: SchedulerStorageService {
    public CustomSchedulerStorageService(IServiceProvider serviceProvider, 
    ICaptionHelperProvider captionHelperProvider, IOptions<SchedulerOptions> schedulerOptions) : base(serviceProvider, captionHelperProvider, schedulerOptions) { }

    protected override DxSchedulerDataStorage CreateSchedulerDataStorageCore(ITypeInfo typeInfo) {
        var schedulerStorage = base.CreateSchedulerDataStorageCore(typeInfo);
        if(typeInfo.Type == typeof(CustomEvent)) {
            ((DxSchedulerAppointmentLabelItem[])schedulerStorage.AppointmentLabelsSource)[0].Caption = "Custom";
        }

        return schedulerStorage;
    }
}

Use the services parameter of the Startup.ConfigureServices method in the YourApplicationName.Blazor.Server\Startup.cs file to register your custom SchedulerStorageService:

//...
using YourApplicationName.Blazor.Server.Services;

namespace YourApplicationName.Blazor.Server;

public class Startup {

    // ...

    public void ConfigureServices(IServiceCollection services) {
        // The default code.
        services.AddScoped<ISchedulerStorageService, CustomSchedulerStorageService>();
    }
    //...
}
See Also