Scheduler

The Scheduler is a widget that represents scheduled data and allows a user to manage and edit it.

Included in: dx.web.js, dx.viz-web.js, dx.all.js
Module: ui/scheduler
Export: default
Scheduler interactive configuration
Copy Code
Copy to Codepen
$("#scheduler").dxScheduler({
});

You can create the widget using one of the following approaches.

  • jQuery

    HTML
    <div id="scheduler">
    JavaScript
    $(function () {
        $("#scheduler").dxScheduler({
            dataSource: [{
                text: 'Meeting customers',
                startDate: new Date(2015, 4, 10, 11, 0),
                endDate: new Date(2015, 4, 10, 13, 0)
            }, {
                text: 'Summing up the results',
                startDate: new Date(2015, 4, 11, 12, 0),
                endDate: new Date(2015, 4, 11, 13, 0)
            },
            // ...
            ],
            currentDate: new Date(2015, 4, 10),
            startDayHour: 8,
            endDayHour: 19
        });
    });
  • AngularJS

    HTML
    <div dx-scheduler="{
        dataSource: [{
            text: 'Meeting customers',
            startDate: new Date(2015, 4, 10, 11, 0),
            endDate: new Date(2015, 4, 10, 13, 0)
        }, {
            text: 'Summing up the results',
            startDate: new Date(2015, 4, 11, 12, 0),
            endDate: new Date(2015, 4, 11, 13, 0)
        },
        // ...
        ],
        currentDate: new Date(2015, 4, 10),
        startDayHour: 8,
        endDayHour: 19
    }">
    </div>
  • Knockout

    HTML
    <div data-bind="dxScheduler: {
        dataSource: [{
            text: 'Meeting customers',
            startDate: new Date(2015, 4, 10, 11, 0),
            endDate: new Date(2015, 4, 10, 13, 0)
        }, {
            text: 'Summing up the results',
            startDate: new Date(2015, 4, 11, 12, 0),
            endDate: new Date(2015, 4, 11, 13, 0)
        },
        // ...
        ],
        currentDate: new Date(2015, 4, 10),
        startDayHour: 8,
        endDayHour: 19
    }">
    </div>
  • ASP.NET MVC Wrappers

    @(Html.DevExtreme().Scheduler()
        .ID("scheduler")
        .DataSource(new object[] {
            new {
                text = "Meeting customers",
                startDate = new DateTime(2015, 5, 10, 11, 0, 0),
                endDate = new DateTime(2015, 5, 10, 13, 0, 0)
            },
            new {
                text = "Summing up the results",
                startDate = new DateTime(2015, 5, 11, 12, 0, 0),
                endDate = new DateTime(2015, 5, 11, 13, 0, 0)
            },
            // ...
        })
        .CurrentDate(new DateTime(2015, 5, 10))
        .StartDayHour(8)
        .EndDayHour(19)
    )

Note that DevExtreme widgets require you to link the jQuery library to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the topics in the Installation section.

See Also

View Demo Watch Video

Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the widget.

Methods

This section describes methods used to manipulate the widget.

Events

This section describes events fired by this widget.

Default Appointment Template

This section lists the fields that are used in a default template for scheduler appointments.

By default, a predefined appointment template is applied to display scheduler appointments. This template is based on certain fields of the data source provided for the widget. Below is the list of these fields. If the default appointment template is not appropriate for your task, implement a custom appointment template based on these or other fields of your data source.

See Also

Default Tooltip Template

This section lists the fields that are used in a default template for scheduler appointment tooltips.

By default, a predefined appointment tooltip template is applied to display appointment toolips. This template is based on certain fields of the data source provided for the widget. Below is the list of these fields. If the default tooltip template is not appropriate for your task, implement a custom template based on these or other fields of your data source.

See Also