Monthly.CalculateByDayOfWeek Property
Specifies whether the gantt calculates the rule by the day of the week.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
Remarks
In markup:
<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
Online Demos
See Also