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

SchedulerOptions Class

Contains options that you can use to configure the Scheduler Module.

Namespace: DevExpress.ExpressApp.Scheduler.Blazor

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

NuGet Package: DevExpress.ExpressApp.Scheduler.Blazor

Declaration

public class SchedulerOptions

Remarks

The following example demonstrates how to access Scheduler Module options:

using System.Drawing;
using DevExpress.Blazor;
using DevExpress.ExpressApp.Scheduler.Blazor;

namespace YourApplicationName.Blazor {
    public class Startup {
        public void ConfigureServices(IServiceCollection services) {
            // ...
            services.AddXaf(Configuration, builder => {
                builder.Modules.AddScheduler(options => {
                    options.Events.OnSchedulerDataStorageCreated = context => {
                        context.SchedulerDataStorage.AppointmentLabelsSource = new DxSchedulerAppointmentLabelItem[] {
                            new DxSchedulerAppointmentLabelItem() { Id = 0, Caption = "Vacation", Color = Color.DeepPink },
                            new DxSchedulerAppointmentLabelItem() { Id = 1, Caption = "Personal", Color = Color.LightSeaGreen }
                        };
                        context.SchedulerDataStorage.AppointmentStatusSource = new DxSchedulerAppointmentStatusItem[] {
                            new DxSchedulerAppointmentStatusItem() { Id = 0, Caption = "Free", Color = Color.Yellow },
                            new DxSchedulerAppointmentStatusItem() { Id = 1, Caption = "Out of Office", Color = Color.MediumTurquoise }
                        };
                    };
                })
            })
        }
    }
}

Inheritance

Object
SchedulerOptions
See Also