JavaScript/jQuery Scheduler - Getting Started

NOTE
Before you start the tutorial, ensure DevExtreme is installed in your application.

The Scheduler component emulates the user interface of Calendar applications on Windows or Mac OS.

This tutorial adds DevExtreme Scheduler to a page, binds the component to data, and configures core Scheduler features.

Each section covers a single configuration step. The complete code is available in the following GitHub repository:

View on GitHub

Create a Scheduler

Bind the Scheduler to Data

The DevExtreme Scheduler supports the following data source types:

To bind Scheduler to data, configure the dataSource property. Specify data field names following the structure of the SchedulerAppointment interface. To use custom field names, specify the following properties:

Set the Current Date

Use currentDate to specify the date displayed in the Scheduler:

Configure Views

Read Tutorial: View Types Read Tutorial: Customize Individual Views

DevExtreme Scheduler ships with the following view types:

Use the views[] array to define and customize Scheduler views. Add views as configuration objects to specify view options. To use default options, add type values as strings to the views[] array.

This example specifies the following views: Day, Week, and Month. Day and Week views use custom startDayHour and endDayHour values. The Month view uses the default configuration.

You can also specify the initial Scheduler view using currentView. This example initializes the component in the Week view:

Edit Appointments

Read Tutorial: Add Appointments Read Tutorial: Update Appointments Read Tutorial: Delete Appointments

Scheduler allows users to add, update, and delete appointments. All editing operations are enabled in the default configuration. To disable specific operations, configure the editing properties.

This tutorial disables allowDragging:

When users add, update, or delete appointments, Scheduler calls the following event handlers:

You can use these handlers to extend Scheduler's functionality. The following example configures onAppointmentAdding and onAppointmentUpdating to prevent recurring appointments from sharing cells with other appointments:

View on GitHub

Time Zone Support

Read Tutorial: Time Zone Support

Scheduler displays all appointments in the client time zone in the default configuration. To use a different time zone, specify the timeZone property. This option accepts IANA time zone identifiers. This tutorial sets the time zone to "Europe/Berlin".

Users can also edit the time zones of individual appointments when editing.allowTimeZoneEditing is enabled:

Enable Adaptive Mode

The Scheduler interface can adapt to small screens. Set adaptivityEnabled to true to enable this capability. For more information, see the following demo:

Scheduler - Adaptability Demo

For further information on the Scheduler component, refer to the following resources: