Skip to content

Latest commit

 

History

67 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Scheduler - Customize the work week and display country-specific holidays

This example demonstrates how to add country-specific holidays (Kuwait), customize the work week (from Sunday to Thursday), and change appearance settings of cells within the Date Navigator.

WinForms Scheduler - Customize the work week and display country-specific holidays

Use the SchedulerControl.WorkDays property to add weekdays and holidays:

private void Form1_Load(object sender, EventArgs e) {
  schedulerControl1.BeginUpdate();
  schedulerControl1.OptionsView.FirstDayOfWeek = FirstDayOfWeek.Sunday;
  schedulerControl1.WorkDays.Clear();
  schedulerControl1.WorkDays.Add(WeekDays.Sunday | WeekDays.Monday | WeekDays.Tuesday | WeekDays.Wednesday | WeekDays.Thursday);
  GenerateHolidaysFor2015();
  schedulerControl1.EndUpdate();
}

Use the DateNavigator.CellStyleProvider property to specify a custom cell style provider (v15.2+) to customize appearance settings of Date Navigator cells. The CustomCellStyleProvider class implements ICalendarCellStyleProvider. The UpdateAppearance method changes the background and foreground color of date cells and displays an icon.

Note

You can also use Formatting Services. Scheduler Services allow you to quickly implement common tasks (navigation, selection, formatting of certain captions, keyboard and mouse event handling).

Read the following help topic for additional information: Scheduler Services.

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Customize the work week, display country-specific holidays, change appearance settings of Date Navigator cells.

Topics

Resources

Stars

1 star

Watchers

54 watching

Forks

Packages

Used by

Contributors

Languages