Class
ResourceIdMapper

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:

cs-api-definition
public abstract class ResourceIdMapper

Inheritance: objectResourceIdMapper

Derived Classes: ComplexResourceIdMapperBaseSimpleResourceIdMapper

Constructors

ResourceIdMapper()

Declaration

cs-api-definition
protected ResourceIdMapper()

Fields

EventIdType

Declaration

cs-api-definition
protected static readonly Type EventIdType

Field Value

Type

Methods

AddResourceId(EventId)

Adds a resource identifier to the underlying resource collection in the appropriate format.

Declaration

cs-api-definition
public abstract void AddResourceId(EventId eventId)

Parameters

eventId

EventId

The EventId to add to the resource collection.

ClearResourceIds()

Removes all resource identifiers from the underlying resource collection.

Declaration

cs-api-definition
public abstract void ClearResourceIds()

GetEventId(object)

Converts an object to an EventId instance, handling both direct EventId objects and other value types.

Declaration

cs-api-definition
protected EventId GetEventId(object o)

Parameters

o

object

The object to convert to an EventId.

Returns

EventId

An EventId instance representing the provided object.

GetResourceId(EventId, Type)

Gets the appropriate resource identifier value based on the target property type, converting EventId to the required format.

Declaration

cs-api-definition
protected static object GetResourceId(EventId eventId, Type propertyType)

Parameters

eventId

EventId

The EventId instance to convert.

propertyType

Type

The target property type for the resource identifier.

Returns

object

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.

Declaration

cs-api-definition
public abstract void ReadResources(IEvent appointment)

Parameters

appointment

IEvent

The IEvent appointment to populate with resource identifiers.

SetResourceList(object)

Sets the resource collection that this mapper will operate on for resource identifier management.

Declaration

cs-api-definition
public abstract void SetResourceList(object resourceList)

Parameters

resourceList

object

The resource collection to be managed by this mapper.