aspnet-devexpress-dot-web-dot-aspxscheduler-dot-aspxschedulerdatawebcontrolbase-c121f3a2.md
Specifies an appointment data source ID.
Namespace : DevExpress.Web.ASPxScheduler
Assembly : DevExpress.Web.ASPxScheduler.v25.2.dll
NuGet Package : DevExpress.Web.Scheduler
[DefaultValue("")]
public virtual string AppointmentDataSourceID { get; set; }
<DefaultValue("")>
Public Overridable Property AppointmentDataSourceID As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
The ID of a data source control that contains information about appointments.
|
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
ASPxSchedulerDataWebControlBase Class