Back to Devexpress

DataSource.FetchMode Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-datasource-a94a7673.md

latest2.5 KB
Original Source

DataSource.FetchMode Property

Specifies whether to process the FetchAppointments and FetchTimeRegions events in bound or unbound mode. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public FetchMode FetchMode { get; set; }
vb
Public Property FetchMode As FetchMode

Property Value

TypeDefaultDescription
FetchModeBound

A FetchMode enumeration value.

|

Available values:

NameDescription
Bound

Process fetch events in bound mode, so the event’s Result property accepts data objects.

| | Unbound |

Process fetch events in unbound mode, so the event’s Result property accepts scheduler items.

|

Remarks

The Result property of the FetchAppointments and FetchTimeRegions events accepts both data objects and scheduler items.

To pass data objects to the event’s Result property, set the FetchMode property to Bound. Specify the AppointmentMappings/TimeRegionMappings property and map the Id. See the Mappings topic for more information.

To pass scheduler items to the event’s Result property, set the FetchMode property to Unbound.

See Also

DataSource Class

DataSource Members

DevExpress.Xpf.Scheduling Namespace