Skip to main content
All docs
V26.1
  • Monthly Class

    Contains settings for a monthly recurrence pattern.

    Namespace: DevExpress.Web.ASPxGantt

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

    Declaration

    public class Monthly :
        Weekly

    The following members return Monthly objects:

    Remarks

    In markup:

    <dx:ASPxGantt ID="Gantt" runat="server" ...>
      ...
        <WorkTimeRules>
            <dx:MonthlyRule IsWorkDay="false">
                <Recurrence DayOfWeek="Monday" DayOfWeekOccurrence="Second" CalculateByDayOfWeek="true" />
            </dx:MonthlyRule>
        </WorkTimeRules>
    </dx:ASPxGantt>
    

    In code:

    MonthlyRule monthlyRule = new MonthlyRule();
    monthlyRule.IsWorkDay = false;
    monthlyRule.Recurrence.DayOfWeek = DayOfWeek.Monday;
    monthlyRule.Recurrence.DayOfWeekOccurrence = DayOfWeekMonthlyOccurrence.Second;
    monthlyRule.Recurrence.CalculateByDayOfWeek = true;
    Gantt.WorkTimeRules.Add(monthlyRule);
    

    Concept

    Work Time Rules

    Online Demos

    Inheritance

    See Also