A newer version of this page is available. Switch to the current version.

WeeklyRule.Recurrence Property

Gets the weekly rule’s recurrence settings.

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

public Weekly Recurrence { get; }

Property Value

Type Description
Weekly

Weekly recurrence settings.

Remarks

Declaratively:

<dx:ASPxGantt ID="Gantt" runat="server" ... /> 
    ...
    <WorkTimeRules> 
        <dx:WeeklyRule IsWorkDay="false" >
            <Recurrence DayOfWeek="Saturday" />
        </dx:WeeklyRule>
        <dx:WeeklyRule IsWorkDay="false">
            <Recurrence DayOfWeek="Sunday" />
        </dx:WeeklyRule>
        ...
    </WorkTimeRules>
</dx:ASPxGantt>

In code:

WeeklyRule weekRule1 = new WeeklyRule();
weekRule1.Recurrence.DayOfWeek = DayOfWeek.Saturday;
weekRule1.IsWorkDay = false;

WeeklyRule weekRule2 = new WeeklyRule();
weekRule2.Recurrence.DayOfWeek = DayOfWeek.Sunday;
weekRule2.IsWorkDay = false;

Gantt.WorkTimeRules.Add(weekRule1);
Gantt.WorkTimeRules.Add(weekRule2);

Concept

Work Time Rules

Online Demos

See Also