SchedulerBuilder.Views(IEnumerable<SchedulerViewType>) Method
In This Article
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
C#
public SchedulerBuilder Views(
IEnumerable<SchedulerViewType> value
)
#Parameters
Name | Type | Description |
---|---|---|
value | IEnumerable<Scheduler |
The option value. |
#Returns
Type | Description |
---|---|
Scheduler |
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