Back to Devexpress

DayView.ShowWorkTimeOnly Property

aspnet-devexpress-dot-web-dot-aspxscheduler-dot-dayview-199c6a12.md

latest3.3 KB
Original Source

DayView.ShowWorkTimeOnly Property

Gets or sets a value indicating if the scheduler display area is restricted to only working hours in a Day View.

Namespace : DevExpress.Web.ASPxScheduler

Assembly : DevExpress.Web.ASPxScheduler.v25.2.dll

NuGet Package : DevExpress.Web.Scheduler

Declaration

csharp
[DefaultValue(false)]
public bool ShowWorkTimeOnly { get; set; }
vb
<DefaultValue(False)>
Public Property ShowWorkTimeOnly As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to show data for working hours only; otherwise, false.

|

Remarks

The working hours time interval in a Day View is specified via its DayView.WorkTime property.

Note

If the DayView.ShowWorkTimeOnly option is set to true, and the DayView.WorkTime and DayView.VisibleTime properties are set to different intervals, the Scheduler view displays an interval that is an intersection of the specified intervals.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowWorkTimeOnly property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-mvc-scheduler-fetch-appointment-event/CS/DevExpressMvcSchedulerFetchAppointments/Models/SchedulerSettingsHelper.cs#L35

csharp
settings.Views.DayView.Styles.ScrollAreaHeight = 250;
settings.Views.DayView.ShowWorkTimeOnly = true;
settings.Views.DayView.DayCount = 2;

asp-net-mvc-scheduler-fetch-appointment-event/VB/DevExpressMvcSchedulerFetchAppointments/Models/SchedulerSettingsHelper.vb#L33

vb
settings.Views.DayView.Styles.ScrollAreaHeight = 250
settings.Views.DayView.ShowWorkTimeOnly = True
settings.Views.DayView.DayCount = 2

See Also

WorkTime

DayView Class

DayView Members

DevExpress.Web.ASPxScheduler Namespace