Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to display a custom work week and holidays

$
0
0

Problem:

In Kuwait weekly holidays are Friday and Saturday. Sunday to Thursday are working days. How can I implement this in the XtraScheduler? Also I'd like to show official holidays in the Scheduler and in the DateNavigator and highlight them.

Solution:

You should use the SchedulerControl.WorkDays collection to accomplish this task. Add the required weekdays and holidays to the collection. 
To change the highlight color of the date in the DateNavigator control, handle its CustomDrawDayNumberCell event.
To change the header captions for holidays handle the SchedulerControl.CustomDrawDayHeader event. Consider also using Formatting Services as an alternative technique.


Viewing all articles
Browse latest Browse all 7205

Trending Articles