The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxScheduler Class

A scheduler control.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v19.2.dll

Declaration

public class ASPxScheduler :
    ASPxSchedulerDataWebControlBase,
    IInnerSchedulerControlOwner,
    ICommandAwareControl<SchedulerCommandId>,
    IBatchUpdateable,
    IBatchUpdateHandler,
    ISupportInitialize,
    ISupportAppointmentEdit,
    ISupportAppointmentDependencyEdit,
    IScriptBlockOwner,
    IMasterControl,
    IXtraSupportShouldSerialize,
    IXtraSupportDeserializeCollectionItem,
    IRequiresLoadPostDataControl,
    IServiceContainer,
    IServiceProvider,
    ISchedulerCommandTarget,
    IInnerSchedulerCommandTarget,
    ISupportsSmartFetch
Public Class ASPxScheduler
    Inherits ASPxSchedulerDataWebControlBase
    Implements IInnerSchedulerControlOwner,
               ICommandAwareControl(Of SchedulerCommandId),
               IBatchUpdateable,
               IBatchUpdateHandler,
               ISupportInitialize,
               ISupportAppointmentEdit,
               ISupportAppointmentDependencyEdit,
               IScriptBlockOwner,
               IMasterControl,
               IXtraSupportShouldSerialize,
               IXtraSupportDeserializeCollectionItem,
               IRequiresLoadPostDataControl,
               IServiceContainer,
               IServiceProvider,
               ISchedulerCommandTarget,
               IInnerSchedulerCommandTarget,
               ISupportsSmartFetch

Remarks

The ASPxScheduler provides the same scheduling functionality as Microsoft Outlook Calendar and enables you to plan your day/month/year. The scheduler allows you to schedule and display scheduled data in the form of appointments. The scheduler can display its appointments in a standard or predefined view: Day, Work Week, Full Week, Week, Month, Timeline, Agenda.

Create a Scheduler

Design Time

The ASPxScheduler control is available on the DX.19.2: Scheduling toolbox tab in the Microsoft Visual Studio IDE.

Drag the control onto a form and customize control settings, or paste the control markup in the page's source code.

<dxwschs:ASPxScheduler ID="ASPxScheduler1" runat="server" AppointmentDataSourceID="AppointmentDataSource" 
ResourceDataSourceID="efResourceDataSource" Start="2017, 10, 17" ActiveViewType="Month">
    <Views>
        <DayView Enabled="true" />
        <FullWeekView Enabled="true">
        </FullWeekView>
    </Views>
    <Storage EnableReminders="false" />
</dxwschs:ASPxScheduler>

Run Time

using DevExpress.Web.ASPxScheduler;
...
protected void Page_Load(object sender, EventArgs e)
{
    ASPxScheduler scheduler = new ASPxScheduler();
    scheduler.ID = "ASPxScheduler1";
    scheduler.Views.DayView.Enabled = true;
    scheduler.Views.FullWeekView.Enabled = true;
    scheduler.AppointmentDataSourceID = "AppointmentDataSource";
    scheduler.ResourceDataSourceID = "efResourceDataSource";
    scheduler.Storage.EnableReminders = false;
    scheduler.ActiveViewType = DevExpress.XtraScheduler.SchedulerViewType.Month;
    // Adds the scheduler control to the form.
    Page.Form.Controls.Add(scheduler);
}

Client-Side API

The ASPxScheduler's client-side API is implemented with JavaScript language and exposed by the ASPxClientScheduler object.

Availability

Available by default.

Class name

ASPxClientScheduler

Access name

ClientInstanceName

Events

ASPxScheduler.ClientSideEvents

Features

Scheduling Functionality

The ASPxScheduler provides APIs and a built-in appointment management UI that allows you to add regular or [recurring](xref:3812 appointments and set reminders.

The ASPxScheduler control doesn't store the appointments and Resources for Appointments it displays. The control's data is stored in a standalone object represented by the ASPxSchedulerStorage class. This storage should be assigned to the ASPxSchedulerDataWebControlBase.Storage property.

View Types

A View is an object that defines the timeline, and how the scheduler displays appointments on the timeline. For instance, the Day View represents appointments by day.

The ASPxScheduler provides the following views to display its appointments:

  • Day View: Displays the specified days.
  • Work Week view: Displays appointments for work days in a week.
  • Week view: Displays appointments for all the days in a specific week.
  • Month view: Displays appointments for all the days in a month. This view provides less detailed information and allows you to view all the appointments in this month.
  • Timeline view: Displays appointments as horizontal bars along the timescales.
  • Agenda view: Displays a chronological list of appointments, grouped by a day.

Use the ASPxScheduler.ActiveViewType property to select a specific View. The ASPxScheduler.Views property allows you to access a View settings.

<dx:ASPxScheduler ID="ASPxScheduler1" runat="server" ActiveViewType="Day" AppointmentDataSourceID="AppointmentDataSource"
ResourceDataSourceID="efResourceDataSource" ...>
    <Views>
        <DayView ResourcesPerPage="2">
            <WorkTime Start="07:00:00" End="20:00:00" />
        </DayView>
        <WorkWeekView Enabled="false" />
        <WeekView Enabled="false" />
        <MonthView Enabled="false" />
        <TimelineView Enabled="false" />
        <AgendaView Enabled="false" />
    </Views>
    <OptionsBehavior ShowViewSelector="false" />
    <Storage EnableReminders="false" />
</dx:ASPxScheduler>

More details | See demo

Built-In Appointment Dialogs

The ASPxScheduler provides dialogs that an end user can customize. These dialogs allow end users to create and modify appointments.

Data Binding

The ASPxScheduler operates in data bound mode to display appointments, resources, labels and status data.

More details | See demo

Customization

Styles and templates allow you to change the layout and appearance of the ASPxScheduler's visual elements.

More details | See demo

Getting Started

ASPxScheduler - Getting Started

Online Demos

ASPxScheduler Demos

Examples

ASPxScheduler Examples

Scheduler Elements

ASPxScheduler Elements

Implements

DevExpress.Utils.Commands.ICommandAwareControl<DevExpress.XtraScheduler.Commands.SchedulerCommandId>
DevExpress.Utils.IBatchUpdateable
DevExpress.Utils.IBatchUpdateHandler
DevExpress.Utils.Serializing.Helpers.IXtraSupportShouldSerialize
DevExpress.Utils.Serializing.Helpers.IXtraSupportDeserializeCollectionItem
DevExpress.XtraScheduler.Commands.ISchedulerCommandTarget
DevExpress.XtraScheduler.ISupportsSmartFetch
See Also