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.

RuleBase.IsWorkDay Property

Specifies whether a day is a work day.

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

[DefaultValue(true)]
public bool IsWorkDay { get; set; }
<DefaultValue(True)>
Public Property IsWorkDay As Boolean

Property Value

Type Default Description
Boolean

true

true, to specify a work day; otherwise, false;

Remarks

Daily Rule:

<dx:ASPxGantt ID="Gantt" runat="server" ... /> 
    ...
    <WorkTimeRules> 
        <dx:DailyRule>
            <Recurrence Start="2/22/2019" End="2/25/2019" />
            <WorkTimeRanges>
                <dx:WorkTimeRange Start="08:00" End="10:00" />
                <dx:WorkTimeRange Start="15:00" End="18:00" />
            </WorkTimeRanges>
        </dx:DailyRule>
        ...
    </WorkTimeRules>
</dx:ASPxGantt>

Weekly Rule:

<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>

Concept

Work Time Rules

Online Demos

See Also