Back to Devexpress

ASPxSchedulerDataWebControlBase.AppointmentDataSourceID Property

aspnet-devexpress-dot-web-dot-aspxscheduler-dot-aspxschedulerdatawebcontrolbase-c121f3a2.md

latest2.9 KB
Original Source

ASPxSchedulerDataWebControlBase.AppointmentDataSourceID Property

Specifies an appointment data source ID.

Namespace : DevExpress.Web.ASPxScheduler

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

NuGet Package : DevExpress.Web.Scheduler

Declaration

csharp
[DefaultValue("")]
public virtual string AppointmentDataSourceID { get; set; }
vb
<DefaultValue("")>
Public Overridable Property AppointmentDataSourceID As String

Property Value

TypeDefaultDescription
StringString.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

aspx
<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

ASPxSchedulerDataWebControlBase Members

DevExpress.Web.ASPxScheduler Namespace