Version

ListScheduleDataConnector Class

Used for providing schedule data from various data sources to XamScheduleDataManager.
Syntax
'Declaration
 
Public Class ListScheduleDataConnector 
   Inherits ScheduleDataConnectorBase
public class ListScheduleDataConnector : ScheduleDataConnectorBase 
Remarks

ListScheduleDataConnector exposes properties for specifying data sources from which the data for appointments, tasks, journals, resources and resource calendars are retrieved from. These schedule objects are then provided to the XamScheduleDataManager whose XamScheduleDataManager.DataConnector property is set to this instance of ListScheduleDataConnector.

Not all data sources are required. Minimally however the ResourceItemsSource and one of AppointmentItemsSource, TaskItemsSource or JournalItemsSource is required for a useful setup. If you want to utilize multiple calendars per resource capability then you need to specify ResourceCalendarItemsSource as well.

The data sources can be any objects that implement IEnumerable interface. You need to specify property mappings that map properties or fields of the data source objects to the properties of the corresponding schedule objects using corresponding property mapping collections exposed on the class. For example AppointmentPropertyMappings is used to map properties or fields of the data objects in the AppointmentItemsSource to the properties of the Appointment clas. You can set the Infragistics.PropertyMappingCollection<TKey,TMapping>.UseDefaultMappings property on the mappings collection to indicate that the property or field names in the data items are the same as the names of properties in the corresponding class in the schedule object model. If a property's name is different then you can add an entry in the mapping collection for that property.

For example, if you set UseDefaultMappings to true on the AppointmentPropertyMappings collection, the data objects in the AppointmentItemsSource are assumed to contain properties or fields with the same names as the properties of the Appointment class. If one or more properties' names do not match, you can add entries in the mapping collection for those properties. Other properties will still use the default mappings. If you leave UseDefaultMappings to false, then you need to add an entry in the mapping collection each property that you want to map. Data for certain properties are required for proper functioning. See AppointmentProperty, JournalProperty, TaskProperty, ResourceProperty and ResourceCalendarProperty enums for more information on which properties are required.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also