The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
V19.2
19.2
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ASPxGantt.WorkTimeRules Property

Provides access to the work time rules collection.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v19.2.dll

Declaration

public WorkTimeRulesCollection WorkTimeRules { get; }
Public ReadOnly Property WorkTimeRules As WorkTimeRulesCollection

Property Value

Type Description
WorkTimeRulesCollection

A collection of work time rules.

Remarks

The Gantt allows you to specify work days, work hours, and holidays.

The Gantt stores its work time rules in the WorkTimeRules collection. The following work time rules are available:

The following table lists common rule settings:

Property

Description

IsWorkDay

Specifies whether a day is a work day.

Recurrence

Provides a rule's recurrence settings. Each rule type provides an individual set of recurrence settings:

WorkTimeRanges

Provides settings for work time ranges.

Concept

Gantt - Work Time Schedule

Example

<dx:ASPxGantt ID="Gantt" runat="server" KeyFieldName="ID" ParentFieldName="ParentID" ... /> 
    ...
    <WorkTimeRules> 
        <dx:DailyRule>
            <WorkTimeRanges>
                <dx:WorkTimeRange Start="08:00" End="11:55" />
                <dx:WorkTimeRange Start="13:00" End="17:00" />
            </WorkTimeRanges>
        </dx:DailyRule>
        <dx:WeeklyRule IsWorkDay="false">
            <Recurrence DayOfWeek="Saturday" />
        </dx:WeeklyRule>
        <dx:WeeklyRule IsWorkDay="false">
            <Recurrence DayOfWeek="Sunday" />
        </dx:WeeklyRule>
        <dx:YearlyRule IsWorkDay="false">
            <Recurrence Day="27" Month="May" />
        </dx:YearlyRule>
        <dx:YearlyRule IsWorkDay="false">
            <Recurrence Day="14" Month="February" />
        </dx:YearlyRule>
        <dx:YearlyRule IsWorkDay="false">
            <Recurrence Day="8" Month="March" />
        </dx:YearlyRule>
    </WorkTimeRules>
</dx:ASPxGantt>

Online Demo

ASPxGantt - Work Time Schedule

See Also