Back to Devexpress

SchedulerOptionsBehavior.UseAsyncMode Property

windowsforms-devexpress-dot-xtrascheduler-dot-scheduleroptionsbehavior.md

latest2.4 KB
Original Source

SchedulerOptionsBehavior.UseAsyncMode Property

Gets or sets whether the SchedulerControl performs layout calculations on multiple threads.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public bool UseAsyncMode { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(True)>
Public Property UseAsyncMode As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to enable asynchronous layout calculation to improve performance.; false to disable asynchronous mode.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UseAsyncMode
SchedulerControl

.OptionsBehavior .UseAsyncMode

|

Remarks

SchedulerControl uses asynchronous mode to improve rendering speed and reduce UI blocking. The control calculates layout elements on separate threads and optimizes the use of the skin cache (this cache runs on a separate thread). If SchedulerControl is not fully initialized during layout calculation, this optimization may degrade performance.

To avoid performance-related issues, explicitly initialize SchedulerControl with BeginInit() and EndInit() methods:

csharp
this.scheduler = new SchedulerControl();
this.scheduler.BeginInit();

// Configure the Scheduler control.

this.scheduler.EndInit();

See Also

SchedulerOptionsBehavior Class

SchedulerOptionsBehavior Members

DevExpress.XtraScheduler Namespace