Skip to main content

RuleBase.WorkTimeRanges Property

Provides settings for work time ranges.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public List<WorkTimeRange> WorkTimeRanges { get; }

Property Value

Type Description
List<WorkTimeRange>

A list of WorkTimeRange objects.

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