Back to Devexpress

CompatibilitySettings.UseLegacyQueryIntervalCalculation Property

corelibraries-devexpress-dot-xpf-dot-core-dot-compatibilitysettings-7f2ffdae.md

latest3.4 KB
Original Source

CompatibilitySettings.UseLegacyQueryIntervalCalculation Property

Specifies whether to calculate QueryStart and QueryEnd individually for each SchedulerControl‘s occurrence.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Data.Desktop.v25.2.dll

NuGet Packages : DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design

Declaration

csharp
public static bool UseLegacyQueryIntervalCalculation { get; set; }
vb
Public Shared Property UseLegacyQueryIntervalCalculation As Boolean

Property Value

TypeDescription
Boolean

true , to calculate QueryStart and QueryEnd individually for each occurrence; false , to use the pattern’s QueryStart and QueryEnd for changed and deleted occurrences.

|

Remarks

In v20.1 and earlier, QueryStart and QueryEnd for modified and deleted occurrences were calculated individually, and returned values different from the QueryStart and QueryEnd of their pattern. In certain scenarios, this prevents such occurrences from being correctly loaded (see: T923353). You can set the UseLegacyQueryIntervalCalculation property to true to revert to this behavior.

In v20.2 and later, QueryStart and QueryEnd for changed and deleted occurrences return the same values as the pattern’s QueryStart and QueryEnd.

Starting with v20.2, the Scheduler implements the FetchAppointments / FetchTimeRegions events. These events allow you to load scheduler items for the visible date interval on demand. When you use this feature to load recurrent patterns for the requested interval, you need to load all changed and deleted occurrences as well.

Important

If you set UseLegacyQueryIntervalCalculation property to true , the FetchAppointments / FetchTimeRegions events stop working correctly.

See Also

CompatibilitySettings Class

CompatibilitySettings Members

DevExpress.Xpf.Core Namespace