WeekDaysCheckEdit.WeekDaysChanged Event
Fires when the control’s weekday checkbox changes its state.
Namespace: DevExpress.XtraScheduler.UI
Assembly: DevExpress.XtraScheduler.v24.1.dll
NuGet Package: DevExpress.Win.Scheduler
Declaration
Event Data
The WeekDaysChanged event's data class is EventArgs.
Remarks
The WeekDaysChanged
event occurs after the user has checked or unchecked the check box in the WeekDaysCheckEdit
control. Handle this event to update the days in a workweek (WorkDays).
Example
This example shows how to update the days in a workweek based on days selected in the WeekDaysCheckEdit
control.
using DevExpress.XtraScheduler;
private void weekDaysCheckEdit1_WeekDaysChanged(object sender, EventArgs e) {
WeekDays weekDays = this.weekDaysCheckEdit1.WeekDays;
WorkDaysCollection workDays = this.schedulerControl.WorkDays;
workDays.BeginUpdate();
workDays.Clear();
if(!weekDays.Equals((WeekDays)0))
workDays.Add(new WeekDaysWorkDay(weekDays));
workDays.EndUpdate();
}
See Also