Skip to main content

ASPxSchedulerDataWebControlBase.AppointmentDataSourceID Property

Specifies an appointment data source ID.

Namespace: DevExpress.Web.ASPxScheduler

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

NuGet Package: DevExpress.Web.Scheduler

Declaration

[DefaultValue("")]
public virtual string AppointmentDataSourceID { get; set; }

Property Value

Type Default Description
String String.Empty

The ID of a data source control that contains information about appointments.

Remarks

Use the AppointmentDataSourceID property to specify the data source for appointments. The ASPxScheduler.Storage.Appointments.Mappings property allows you to map data source fields to appointment properties.

Properties of the ASPxAppointmentMappingInfo object correspond to the properties of the Appointment object.

Run Demo: Scheduling - Bound Mode

    <dx:ASPxScheduler ID="ASPxScheduler1" runat="server" GroupType="Resource" ActiveViewType="WorkWeek"
        ResourceDataSourceID="ResourceDataSource" AppointmentDataSourceID="AppointmentDataSource" >
        <Storage EnableReminders="false">
            <Appointments CommitIdToDataSource="false">               
                <Mappings AppointmentId="ID" End="EndTime" Start="StartTime" Subject="Subject" 
                    Description="Description" Location="Location" AllDay="AllDay" Type="EventType" 
                    RecurrenceInfo="RecurrenceInfo" ReminderInfo="ReminderInfo" Label="Label" 
                    Status="Status" ResourceId="MedicId" />
            </Appointments>
            <Resources>
                <Mappings ResourceId="ID" Caption="DisplayName" />
            </Resources>
        </Storage>
    </dx:ASPxScheduler>
See Also