MonthView.CompressWeekend Property
Gets or sets a value indicating if the weekend days (Saturday and Sunday) should be displayed as one day.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
Declaration
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool CompressWeekend { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false | true to compress weekends; otherwise, false. |
Remarks
Use this property to display the weekend days as one day when the Scheduler shows its data in a Month view. Note that only Saturday and Sunday can be displayed in a single day cell, irrespective of the current SchedulerOptionsViewBase.FirstDayOfWeek setting.
Note
After you have enabled the CompressWeekend option while the first day of the week is set to Sunday, the MonthView will display data starting a week earlier with the first day of the week set to Monday. This shift of weeks is applied to display the initial start date of the scheduler control in the new visible range of dates. If you disable CompressWeekend again, the first visible week will start from Sunday.
FirstDayOfWeek = Sunday; CompressWeekend = true | FirstDayOfWeek = Sunday; CompressWeekend = false |
---|---|