Class MappingInfo
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class MappingInfo : IMappingInfo, IEnumerable<SchedulerMapping>, IEnumerable
Constructors
MappingInfo()
Declaration
public MappingInfo()
Properties
Mappings
Gets the collection of property mappings that define how data source item properties correspond to RadScheduler item properties.
Declaration
public List<SchedulerMapping> Mappings { get; }
Property Value
System.Collections.Generic.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
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
protected ConvertCallback UniqueIdToSchedulerCallback { get; }
Property Value
ConvertCallback
|
Methods
FindByDataSourceProperty(String)
Finds a property mapping by the data source property name.
Declaration
public SchedulerMapping FindByDataSourceProperty(string dataSourceProperty)
Parameters
System.String
dataSourceProperty
The name of the data source property to search for. |
Returns
SchedulerMapping
The SchedulerMapping instance if found; otherwise, null. |
Implements
FindBySchedulerProperty(String)
Finds a property mapping by the scheduler property name.
Declaration
public SchedulerMapping FindBySchedulerProperty(string schedulerProperty)
Parameters
System.String
schedulerProperty
The name of the scheduler property to search for. |
Returns
SchedulerMapping
The SchedulerMapping instance if found; otherwise, null. |
Implements
GetValue(String)
This method is not relevant for this class.
Declaration
public string GetValue(string key)
Parameters
System.String
key
The scheduler property name to look up. |
Returns
System.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
public void LoadFrom(string filePath)
Parameters
System.String
filePath
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
public void LoadFrom(string[, ] array)
Parameters
System.String[,]
array
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
public SchedulerMapping SetValue(string key, string value)
Parameters
System.String
key
The scheduler property name to map. |
System.String
value
The data source property name to associate with the scheduler property. |
Returns
SchedulerMapping
The SchedulerMapping instance that was updated or created. |
Explicit Interface Implementations
IEnumerable<SchedulerMapping>.GetEnumerator()
Returns an enumerator that iterates through the collection of SchedulerMapping instances.
Declaration
IEnumerator<SchedulerMapping> IEnumerable<SchedulerMapping>.GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<SchedulerMapping>
An enumerator for the mappings collection. |
Implements
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through the collection of SchedulerMapping instances.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
An enumerator for the mappings collection. |