Skip to main content
All docs
V25.1
  • .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.

    SchedulerOptions.ViewTypes Property

    View Types that the Scheduler uses to display its data.

    Namespace: DevExpress.ExpressApp.Scheduler.Blazor

    Assembly: DevExpress.ExpressApp.Scheduler.Blazor.v25.1.dll

    NuGet Package: DevExpress.ExpressApp.Scheduler.Blazor

    Declaration

    public IList<SchedulerViewType> ViewTypes { get; set; }

    Property Value

    Type Description
    IList<SchedulerViewType>

    A list of DevExpress.Blazor.SchedulerViewType objects.

    Remarks

    The following code snippet specifies type and display order of Views in am XAF ASP.NET Core Blazor Scheduler:

    File: YourApplicationName.Blazor.Server\Startup.cs

    public class Startup {
    // ...
        public void ConfigureServices(IServiceCollection services) {
            // ...
            services.AddXaf(Configuration, builder => {
                builder.UseApplication<MySolutionBlazorApplication>();
                builder.Modules
                    // ...
                    .AddScheduler(options => {
                        options.ViewTypes.Remove(DevExpress.Blazor.SchedulerViewType.Timeline);
                    })
                         .AddScheduler(options => {
                            options.ViewTypes = new[] {
                                DevExpress.Blazor.SchedulerViewType.Month,
                                DevExpress.Blazor.SchedulerViewType.Week
                            };
                        })
            })
        }
    }
    
    See Also