RadScheduler follows the Provider Design Pattern to allow for easy integration into
existing applications. For more information, please see the
Using a Data Provider topic.
To bind RadScheduler to a provider, set its Provider or ProviderName
property. Because providers supply information about appointments using the Telerik.Web.UI.Appointment
type, you do not need to set the scheduler's DataKeyField, DataSubjectField,
DataStartField, DataEndField, DataRecurrenceField and DataRecurrenceParentKeyField
properties. Similarly, you do not need to set the ResourceTypes property,
as the provider supplies this information. Any values you set on the scheduler at
design time are ignored.
Note: This example is read-only due to the nature of the demonstrated provider.
The reason is that the provider manipulates the database directly and cannot be
isolated for the purposes of the demo.
In order to turn on the write support, you need to download and run the samples
locally. Set the RadScheduler's ReadOnly property to "false", then
change persistChanges to true in web.config:
<telerik.web.ui>
<radScheduler
defaultAppointmentProvider="Integrated">
<appointmentProviders>
<add
name="ReadOnlySchedulerData"
type="Telerik.Web.Examples.Scheduler.MyDbSchedulerProvider"
connectionStringName="TelerikConnectionString"
persistChanges="true"
/>
</appointmentProviders>
</radScheduler>
</telerik.web.ui>
This example demonstrates how to build a custom database provider for RadScheduler.
The source code for the provider is located in the App_Code directory of the QSF.
Please, refer to the documentation for information about implementing your own providers.