New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class MappingInfo : IMappingInfo, IEnumerable

Inheritance: objectMappingInfo

Derived Classes: AppointmentMappingInfoResourceMappingInfo

Implements: IEnumerableIMappingInfo

Constructors

C#
public MappingInfo()

Properties

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

C#
public List<SchedulerMapping> Mappings { get; }

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

C#
protected ConvertCallback UniqueIdToDataSourceCallback { get; }

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

C#
protected ConvertCallback UniqueIdToSchedulerCallback { get; }

Methods

Finds a property mapping by the data source property name.

C#
public SchedulerMapping FindByDataSourceProperty(string dataSourceProperty)
Parameters:dataSourcePropertystring

The name of the data source property to search for.

Returns:

SchedulerMapping

The SchedulerMapping instance if found; otherwise, null.

Implements: IMappingInfo.FindByDataSourceProperty(string)

Finds a property mapping by the scheduler property name.

C#
public SchedulerMapping FindBySchedulerProperty(string schedulerProperty)
Parameters:schedulerPropertystring

The name of the scheduler property to search for.

Returns:

SchedulerMapping

The SchedulerMapping instance if found; otherwise, null.

Implements: IMappingInfo.FindBySchedulerProperty(string)

This method is not relevant for this class.

C#
public string GetValue(string key)
Parameters:keystring

The scheduler property name to look up.

Returns:

string

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

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.

C#
public void LoadFrom(string filePath)
Parameters:filePathstring

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

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

C#
public void LoadFrom(string[,] array)
Parameters:arraystring[,]

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

This method is not relevant for this class.

C#
public SchedulerMapping SetValue(string key, string value)
Parameters:keystring

The scheduler property name to map.

valuestring

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

Returns:

SchedulerMapping

The SchedulerMapping instance that was updated or created.