Skip to main content
All docs
V24.1
.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.v24.1.dll

NuGet Package: DevExpress.ExpressApp.Scheduler.Blazor

Declaration

public class SchedulerOptions :
    SchedulerOptionsBase

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
DevExpress.ExpressApp.Scheduler.SchedulerOptionsBase
SchedulerOptions
See Also