Chooses the resource-ID mapping strategy for a scheduler data-source collection.
Definition
Namespace:Telerik.WinControls.UI.Scheduler
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class ResourceMapperFactory : IResourceMapperFactory
Inheritance: objectResourceMapperFactory
Implements:
Constructors
Initializes the factory with the data source whose resource provider supplies existing resource objects.
public ResourceMapperFactory(SchedulerBindingDataSource ownerDataSource)
The scheduler binding data source that owns the resource provider.
Properties
Gets the scheduler data source associated with this factory.
public SchedulerBindingDataSource OwnerDataSource { get; }
Methods
Selects a resource mapper based on the collection shape and resource-ID representation.
public virtual ResourceIdMapper GetResourceMapper(object dataSourceItem, PropertyDescriptor resourceIdDescriptor)
The collection holding the resource references for a data-source item.
resourceIdDescriptorPropertyDescriptorThe descriptor for the ID property on complex resource objects, or null when the collection contains resource-ID values directly; direct-ID collections must implement IList.
Returns:The mapper selected for the collection, or null when a generic collection does not implement the required ICollection<T> interface.
Implements:
For complex resource objects, generic ICollection<T> collections can be mapped directly. When
resourceIdDescriptoris null, the selected simple mapper uses IList; a generic collection that does not also implement IList is not usable for direct resource-ID values.