Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Recurrence - Weekly (examples)

Interval

Range

RecurrenceInfo.WeekDays_MondayAndFriday

RecurrenceRange.NoEndDate

RecurrenceRange.OccurrenceCount

RecurrenceRange.EndByDate

  1. An appointment recurs every 2 weeks, on Monday and Wednesday. It occurs 15 times.

    RRULE:FREQ=WEEKLY;COUNT=15;INTERVAL=2;BYDAY=MO,WE
    
    apt.RecurrenceInfo.Type = RecurrenceType.Weekly;
    apt.RecurrenceInfo.Start = apt.Start;
    apt.RecurrenceInfo.Periodicity = 2;
    apt.RecurrenceInfo.WeekDays = WeekDays.Monday | WeekDays.Wednesday;
    apt.RecurrenceInfo.Range = RecurrenceRange.OccurrenceCount;
    apt.RecurrenceInfo.OccurrenceCount = 15;
    
  2. An appointment occurs every fourth week on weekends. Infinite (no end date).

    RRULE:FREQ=WEEKLY;INTERVAL=4;BYDAY=SU,SA
    
    apt.RecurrenceInfo.Type = RecurrenceType.Weekly;
    apt.RecurrenceInfo.Start = apt.Start;
    apt.RecurrenceInfo.Periodicity = 4;
    apt.RecurrenceInfo.WeekDays = WeekDays.WeekendDays;
    apt.RecurrenceInfo.Range = RecurrenceRange.NoEndDate;
    
  3. An appointment occurs every Friday for 24 days.

    RRULE:FREQ=WEEKLY;UNTIL=20161127T080000Z;BYDAY=FR
    
    apt.RecurrenceInfo.Type = RecurrenceType.Weekly;
    apt.RecurrenceInfo.Start = apt.Start;
    apt.RecurrenceInfo.Periodicity = 1;
    apt.RecurrenceInfo.WeekDays = WeekDays.Friday;
    apt.RecurrenceInfo.Range = RecurrenceRange.EndByDate;
    apt.RecurrenceInfo.End = apt.RecurrenceInfo.Start.AddDays(24);
    
See Also