Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Collapse]Scheduler
   [Expand]Product Information
    Getting Started
   [Expand]Fundamentals
   [Expand]Concepts
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Collapse]Examples
    [Expand]Data Binding
    [Expand]Selection
    [Expand]Customization
    [Expand]Printing and Reporting
    [Collapse]Miscellaneous
      How to: Add Shifted Holidays to the Scheduler
      How to: Use a Faster Loading Appointment Editing Form
   [Expand]End-User Capabilities
   [Expand]Member Tables
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Add Shifted Holidays to the Scheduler

This example demonstrates how easily holidays can be added to the Scheduler and then exchanged with working. So, the phenomenon of shifted holidays occurs.

Suppose you are approaching the Independence Day of Brazil (Dia da Independencia), September 7, which in year 2008 falls on Sunday. An urgent need requires that one shift of your employees work on that day. But, you have to provide them with two days off in the middle of the week, instead of the national holiday and a weekend. The ASPxScheduler can handle this scenario with relative ease.

To create a custom schedule, perform the following steps:

Expanded Step 1. Add a holiday

Expanded Step 2. Convert weekends to working days

The following method specifies Sunday, September 7 as a working day, thus creating an exclusion in the common holiday series of the scheduler. The ASPxDateNavigator control displays this day with black color.

Expanded Step 3. Create shifted weekend days

This method creates two new holidays. They are painted red in the DateNavigator control.

We'll add all-day appointments for each affected day and preview the result in the display of the ASPxDateNavigator control:

and in the scheduler's working area:

How would you rate this topic?​​​​​​​