Data and Databinding
Scheduler for ASP.NET AJAX gives you the option of using standard ADO.NET databinding to bind C1Schedule to a datasource or using an automatically generated XML file to save and load data. The built-in C1WebScheduleStorage, automatically created by C1Schedule, is used in both cases and works on the data layer behind the scenes.
To bind to a database, you must specify the datasource and map it to the C1WebScheduleStorage. Each database table and its columns can be mapped to separate areas in the C1WebScheduleStorage, and then appointments, categories, contacts, labels, resources, and the status of appointments can be loaded from the database. For example, if the bound datasource contains a field called EmployeeName, you should set the MappingName property to the name of this field.
If you prefer to use a built-in datasource, data can be saved to and loaded from an XML file that is specified in the DataFilePath property. This file, C1ScheduleData.xml, is created automatically when a C1Schedule control is added to a form, and it serves as the C1Schedule data storage.
Data Storages
C1WebScheduleStorage is broken into separate storage areas, including the following:
Storage Area |
Description |
Used to store appointments. | |
Used to store categories. | |
Used to store contacts. | |
Used to store labels. | |
Used to store resources. | |
Used to store statuses. |
The C1WebScheduleStorage areas can be accessed programmatically through the DataStorage property.
Data Importing and Exporting
The C1WebScheduleStorage component also handles data importing and exporting to other scheduling applications and formats. Instead of binding a component to data, you can use the Export and Import methods for saving and loading data to or from binary, iCal, and XML formats.
The following topics provide more information on data mappings, binding to a database, and using the built-in data storage.
Binding C1Schedule to a Data Source
Using the Built-in Data Storage
|