Class
MappingInfo

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class MappingInfo : IMappingInfo, IEnumerable

Inheritance: objectMappingInfo

Derived Classes: AppointmentMappingInfoResourceMappingInfo

Implements: IEnumerableIMappingInfo

Constructors

MappingInfo()

Declaration

cs-api-definition
public MappingInfo()

Properties

Mappings

Gets the collection of property mappings that define how data source item properties correspond to RadScheduler item properties.

Declaration

cs-api-definition
public List<SchedulerMapping> Mappings { get; }

Property Value

List<SchedulerMapping>

UniqueIdToDataSourceCallback

Gets a callback delegate that converts a scheduler unique identifier to a data source value by extracting the key value from an EventId instance.

Declaration

cs-api-definition
protected ConvertCallback UniqueIdToDataSourceCallback { get; }

Property Value

ConvertCallback

UniqueIdToSchedulerCallback

Gets a callback delegate that converts a data source value to a scheduler unique identifier by wrapping values in EventId instances.

Declaration

cs-api-definition
protected ConvertCallback UniqueIdToSchedulerCallback { get; }

Property Value

ConvertCallback

Methods

FindByDataSourceProperty(string)

Finds a property mapping by the data source property name.

Declaration

cs-api-definition
public SchedulerMapping FindByDataSourceProperty(string dataSourceProperty)

Parameters

dataSourceProperty

string

The name of the data source property to search for.

Returns

SchedulerMapping

The SchedulerMapping instance if found; otherwise, null.

Implements IMappingInfo.FindByDataSourceProperty(string)

FindBySchedulerProperty(string)

Finds a property mapping by the scheduler property name.

Declaration

cs-api-definition
public SchedulerMapping FindBySchedulerProperty(string schedulerProperty)

Parameters

schedulerProperty

string

The name of the scheduler property to search for.

Returns

SchedulerMapping

The SchedulerMapping instance if found; otherwise, null.

Implements IMappingInfo.FindBySchedulerProperty(string)

GetValue(string)

This method is not relevant for this class.

Declaration

cs-api-definition
public string GetValue(string key)

Parameters

key

string

The scheduler property name to look up.

Returns

string

The corresponding data source property name or an empty string if no mapping is found.

LoadFrom(string)

Loads property mappings from a CSV file where each line contains a scheduler property name and corresponding data source property name separated by a comma.

Declaration

cs-api-definition
public void LoadFrom(string filePath)

Parameters

filePath

string

The file path to the CSV file containing mapping definitions in the format "SchedulerProperty,DataSourceProperty".

LoadFrom(string[,])

Loads property mappings from a two-dimensional string array where each row contains a scheduler property name and corresponding data source property name.

Declaration

cs-api-definition
public void LoadFrom(string[,] array)

Parameters

array

string[,]

A two-dimensional array where the first column contains scheduler property names and the second column contains data source property names.

SetValue(string, string)

This method is not relevant for this class.

Declaration

cs-api-definition
public SchedulerMapping SetValue(string key, string value)

Parameters

key

string

The scheduler property name to map.

value

string

The data source property name to associate with the scheduler property.

Returns

SchedulerMapping

The SchedulerMapping instance that was updated or created.