IResourceMapperFactory
Creates a mapper that synchronizes appointment resource IDs with a bound resource collection.
Definition
Namespace:Telerik.WinControls.UI.Scheduler
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public interface IResourceMapperFactory
Methods
Selects a resource mapper based on the collection shape and resource-ID representation.
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.
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.