Skip to main content
All docs
V26.1
  • SchedulerListEditor.ViewTypes Property

    View Types that the Scheduler uses to display its data.

    Namespace: DevExpress.ExpressApp.Scheduler.Blazor.Editors

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

    NuGet Package: DevExpress.ExpressApp.Scheduler.Blazor

    Declaration

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

    Property Value

    Type Description
    IEnumerable<SchedulerViewType>

    A SchedulerViewType enumeration type that specifies the Scheduler View type.

    Remarks

    The following code snippet specifies Day and Week View Types for an individual View:

    using DevExpress.Blazor;
    using DevExpress.ExpressApp;
    using DevExpress.ExpressApp.Scheduler.Blazor.Editors;
    using DevExpress.Persistent.Base.General;
    
    namespace YourApplicationName.Blazor.Server.Controllers;
    
    public class SchedulerViewTypesCustomizationController : ObjectViewController<ListView, IEvent> {
        protected override void OnViewControlsCreated() {
            base.OnViewControlsCreated();
            if(View.Editor is SchedulerListEditor schedulerListEditor) {
                schedulerListEditor.ViewTypes = new[] {
                        SchedulerViewType.Day,
                        SchedulerViewType.Week,
                };
            }
        }
    }
    
    See Also