ASPxGantt.WorkTimeRules Property
Provides access to the work time rules collection.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
WorkTimeRulesCollection | A collection of work time rules. |
Remarks
The ASPxGantt 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:
Daily Rule (DailyRule)
Weekly Rule (WeeklyRule)
Monthly Rule (MonthlyRule)
Yearly Rule (YearlyRule)
The following table lists common rule settings:
Property | Description |
---|---|
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: |
Provides settings for work time ranges. |
Concept
Example
<dx:ASPxGantt ID="Gantt" runat="server" KeyFieldName="ID" ParentFieldName="ParentID" ... />
...
<WorkTimeRules>
<dx:DailyRule>
<WorkTimeRanges>
<dx:WorkTimeRange Start="08:00" End="11:55" />
</WorkTimeRanges>
</dx:DailyRule>
<dx:WeeklyRule IsWorkDay="false">
<Recurrence DayOfWeek="Saturday" />
</dx:WeeklyRule>
<dx:YearlyRule IsWorkDay="false">
<Recurrence Day="27" Month="May" />
</dx:YearlyRule>
</WorkTimeRules>
</dx:ASPxGantt>
Online Demo
ASPxGantt - Work Time Schedule