vcl-151014-expressscheduler-how-to-aggregate-storage-how-to-bind-multiple-scheduler-storages-to-a-scheduler-at-design-time.md
The following example demonstrates how to bind the TcxSchedulerDBStorage and TcxSchedulerStorage to the scheduler, using the TcxSchedulerAggregateStorage component, at design-time.
Follow the steps below:
Drop the TcxScheduler control, the TcxSchedulerDBStorage , TcxSchedulerStorage , and TcxSchedulerAggregateStorage components onto a form from the Component Palette ‘s DevExpress page.
Configure the TcxSchedulerDBStorage and TcxSchedulerStorage components. To learn how to prepare scheduler storages for use in a scheduling application, refer to the Bound Mode and Unbound Mode help topics.
Select the TcxSchedulerAggregateStorage component. In the Object Inspector , click the ellipsis button next to the TcxSchedulerAggregateStorage.Links property to open the collection editor.
// ...
procedure TForm1.AggregateStorageEventInserting(
Sender: TcxSchedulerAggregateStorage; AEvent: TcxSchedulerEvent;
var AStorage: TcxCustomSchedulerStorage);
begin
// submit all-day events to unbound storage (this storage is not default)
if AEvent.AllDayEvent then
AStorage := SchedulerStorage;
end;
See Also
How to Bind Multiple Scheduler Storages to a Scheduler in Code