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.

Monthly.DayOfWeekOccurrence Property

Specifies a day of the week's occurrence.

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

public DayOfWeekMonthlyOccurrence DayOfWeekOccurrence { get; set; }
Public Property DayOfWeekOccurrence As DayOfWeekMonthlyOccurrence

Property Value

Type Description
DayOfWeekMonthlyOccurrence

A day of the week's occurrence.

Remarks

Declaratively:

<dx:ASPxGantt ID="Gantt" runat="server" ...>
  ...
    <WorkTimeRules>
        <dx:MonthlyRule IsWorkDay="false">
            <Recurrence DayOfWeek="Monday" DayOfWeekOccurrence="Second" CalculateByDayOfWeek="true" />
        </dx:MonthlyRule>
    </WorkTimeRules>
</dx:ASPxGantt>

In code:

MonthlyRule monthlyRule = new MonthlyRule();
monthlyRule.IsWorkDay = false;
monthlyRule.Recurrence.DayOfWeek = DayOfWeek.Monday;
monthlyRule.Recurrence.DayOfWeekOccurrence = DayOfWeekMonthlyOccurrence.Second;
monthlyRule.Recurrence.CalculateByDayOfWeek = true;
Gantt.WorkTimeRules.Add(monthlyRule);

Concept

Work Time Rules

Online Demos

See Also