MappingInfo
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class MappingInfo : IMappingInfo, IEnumerable
Inheritance: objectMappingInfo
Derived Classes:
Implements:
Constructors
public MappingInfo()
Properties
Mappings
List<SchedulerMapping>
Gets the collection of property mappings that define how data source item properties correspond to RadScheduler item properties.
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.
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.
protected ConvertCallback UniqueIdToSchedulerCallback { get; }
Methods
Finds a property mapping by the data source property name.
public SchedulerMapping FindByDataSourceProperty(string dataSourceProperty)
The name of the data source property to search for.
Returns:The SchedulerMapping instance if found; otherwise, null.
Implements:
Finds a property mapping by the scheduler property name.
public SchedulerMapping FindBySchedulerProperty(string schedulerProperty)
The name of the scheduler property to search for.
Returns:The SchedulerMapping instance if found; otherwise, null.
Implements:
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.
public void LoadFrom(string filePath)
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.
public void LoadFrom(string[,] array)
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.
public SchedulerMapping SetValue(string key, string value)
The scheduler property name to map.
valuestringThe data source property name to associate with the scheduler property.
Returns:The SchedulerMapping instance that was updated or created.