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.

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerOptions Class

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

Namespace: DevExpress.ExpressApp.Scheduler.Blazor

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

NuGet Package: DevExpress.ExpressApp.Scheduler.Blazor

#Declaration

public class SchedulerOptions :
    SchedulerOptionsBase

#Remarks

The following example demonstrates how to access Scheduler Module options:

C#
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