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.

Daily.Interval Property

Specifies the daily recurrence's interval.

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

[DefaultValue(1)]
public int Interval { get; set; }
<DefaultValue(1)>
Public Property Interval As Integer

Property Value

Type Default Description
Int32

1

An interval value.

Remarks

In the following example, set the Interval property to 2 to repeat the daily rule every second day after the specified start date (Daily.Start).

In code:

DailyRule rule1 = new DailyRule();
rule1.WorkTimeRanges.AddRange( new List<WorkTimeRange>
{
    new WorkTimeRange(){ Start=new TimeSpan(08,00,00), End=new TimeSpan(10,00,00)},
    new WorkTimeRange(){ Start=new TimeSpan(15,00,00), End=new TimeSpan(18,00,00)}
});
rule1.Recurrence.Start = new DateTime(2019, 02, 22);
rule1.Recurrence.Interval = "2";

ASPxGantt1.WorkTimeRules.Add(rule1);

Declaratively:

<dx:DailyRule>
    <Recurrence Start="2/22/2019" Interval="2" />
    <WorkTimeRanges>
        <dx:WorkTimeRange Start="08:00" End="10:00" />
        <dx:WorkTimeRange Start="15:00" End="18:00" />
    </WorkTimeRanges>
</dx:DailyRule>

Concept

Work Time Rules

Online Demos

See Also