.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

SchedulerListEditorBase.ResourceDataSourceCreating Event

Occurs before the resources data source has been instantiated by the SchedulerListEditorBase's descendant.

Namespace: DevExpress.ExpressApp.Scheduler

Assembly: DevExpress.ExpressApp.Scheduler.v19.2.dll

Declaration

public event EventHandler<ResourceDataSourceCreatingEventArgs> ResourceDataSourceCreating
Public Event ResourceDataSourceCreating As EventHandler(Of ResourceDataSourceCreatingEventArgs)
public event EventHandler<ResourceDataSourceCreatingEventArgs> ResourceDataSourceCreating
Public Event ResourceDataSourceCreating As EventHandler(Of ResourceDataSourceCreatingEventArgs)

Event Data

The ResourceDataSourceCreating event handler receives an argument of the ResourceDataSourceCreatingEventArgs type. The following properties provide information specific to this event.

Property Description
DataSource Specifies the object used to store resources.
Handled Gets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing.
(Inherited from HandledEventArgs)
ResourceType Specifies the type of the Resource objects used by the scheduling control.

Remarks

This event is raised in the protected SchedulerListEditorBase.CreateResourcesDataSource method. Handle this event to specify a custom resources data source to be used by the SchedulerListEditorBase's descendant. The handler's ResourceType parameter specifies the type of resource objects used by the Scheduler. Instantiate a collection of the required resources and pass it to the handler's DataSource parameter. Set the handler's Handled parameter to true, to prohibit the creation of the default resources collection.

To perform custom actions over the resources data source used by the SchedulerListEditorBase's descendant, handle the SchedulerListEditorBase.ResourceDataSourceCreated.

For information on resources, refer to the Resources in a Schedule topic.

See Also