ClassResourceIdMapper
Provides an abstract base class for mapping resource identifiers to appointments in the scheduler, handling the conversion between different resource ID formats and collection types.
Definition
Namespace:Telerik.WinControls.UI.Scheduler
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public abstract class ResourceIdMapper
Inheritance: objectResourceIdMapper
Derived Classes:
Constructors
ResourceIdMapper()
Declaration
protected ResourceIdMapper()
Fields
Methods
AddResourceId(EventId)
Adds a resource identifier to the underlying resource collection in the appropriate format.
ClearResourceIds()
Removes all resource identifiers from the underlying resource collection.
Declaration
public abstract void ClearResourceIds()
GetEventId(object)
GetResourceId(EventId, Type)
Gets the appropriate resource identifier value based on the target property type, converting EventId to the required format.
Declaration
protected static object GetResourceId(EventId eventId, Type propertyType)
Parameters
eventId
The EventId instance to convert.
propertyType
The target property type for the resource identifier.
Returns
The resource identifier in the appropriate format for the target property type.
ReadResources(IEvent)
Reads all resource identifiers from the underlying collection and populates the appointment's resource ID collection.
SetResourceList(object)
Sets the resource collection that this mapper will operate on for resource identifier management.
Declaration
public abstract void SetResourceList(object resourceList)
Parameters
resourceList
The resource collection to be managed by this mapper.