Skip to main content

ASPxScheduler.IsUpdateLocked Property

Gets whether the ASPxScheduler control has been locked for updating.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v23.2.dll

NuGet Package: DevExpress.Web.Scheduler

Declaration

public bool IsUpdateLocked { get; }

Property Value

Type Description
Boolean

true if the scheduler control is locked; otherwise, false.

Remarks

The ASPxScheduler.BeginUpdate and ASPxScheduler.EndUpdate methods use an internal counter to implement the appropriate functionality. The counter’s initial value is 0. The BeginUpdate method increments the counter. EndUpdate decrements the counter and if its new value is zero, change notifications are enabled. Note that each call to BeginUpdate must be paired with a call to EndUpdate. If a call to BeginUpdate is made, but there is no corresponding call to EndUpdate afterwards, or it’s not called because an exception occurred, the scheduler control will no longer be updated. To ensure that EndUpdate is always called even if an exception occurs, use the try…finally statement.

Implements

DevExpress.Utils.IBatchUpdateable.IsUpdateLocked
See Also