ClassMappingInfo
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class MappingInfo : IMappingInfo, IEnumerable
Inheritance: objectMappingInfo
Derived Classes:
Implements:
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
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
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
Methods
FindByDataSourceProperty(string)
Finds a property mapping by the data source property name.
Declaration
public SchedulerMapping FindByDataSourceProperty(string dataSourceProperty)
Parameters
dataSourceProperty
The name of the data source property to search for.
Returns
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
schedulerProperty
The name of the scheduler property to search for.
Returns
The SchedulerMapping instance if found; otherwise, null.
Implements
GetValue(string)
This method is not relevant for this class.
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
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
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
public SchedulerMapping SetValue(string key, string value)
Parameters
key
The scheduler property name to map.
value
The data source property name to associate with the scheduler property.
Returns
The SchedulerMapping instance that was updated or created.