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.

WeeklyRule Class

Provides settings that allow you to specify a rule for a week.

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

public class WeeklyRule :
    RuleBase
Public Class WeeklyRule
    Inherits RuleBase

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

Inheritance

See Also