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