Giter Club home page Giter Club logo

winforms-scheduler-country-specific-work-week-holidays's Introduction

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.

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)

winforms-scheduler-country-specific-work-week-holidays's People

Contributors

alexmedusa avatar devexpressexamplebot avatar iam0k avatar nadezhdadx avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

alexmedusa

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.