Skip to main content
All docs
V25.2
  • ID
    Max
    Min

    SchedulerBuilder<T>.Views(IEnumerable<SchedulerViewType>) Method

    Specifies and configures the views to be available in the view switcher. Mirrors the client-side views option.

    Namespace: DevExtreme.AspNet.Mvc.Builders

    Assembly: DevExtreme.AspNet.Core.dll

    Declaration

    public SchedulerBuilder<T> Views(
        IEnumerable<SchedulerViewType> value
    )

    Parameters

    Name Type Description
    value IEnumerable<SchedulerViewType>

    The option value.

    Returns

    Type Description
    SchedulerBuilder<T>

    A reference to this instance after the method is called.

    Remarks

    Use the following notation to set the option’s value:

    @(Html.DevExtreme().Scheduler()
        .Views(new[] { SchedulerViewType.Agenda })
    )
    
    See Also