Skip to main content

OptionsSelectionBehavior.UpdateSelectionDurationAction Property

Specifies how the selection conforms to the time scale change in the Timeline view.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop

Declaration

[XtraSerializableProperty(XtraSerializationFlags.DefaultValue)]
public UpdateSelectionDurationAction UpdateSelectionDurationAction { get; set; }

Property Value

Type Description
UpdateSelectionDurationAction

An UpdateSelectionDurationAction enumeration member, specifying the action performed when the time scale changes.

Available values:

Name Description
Adjust

The selection is adjusted to represent the originally selected interval, so the selection may span acreoos several cells.

OptionSelectionBehaviorB1

Reset

The selection is reset, so it occupies only the beginning of the previously selected interval.

OptionSelectionBehaviorB

Property Paths

You can access this nested property as listed below:

Library Object Type Path to UpdateSelectionDurationAction
WinForms Controls TimelineView
.OptionsSelectionBehavior .UpdateSelectionDurationAction
ASP.NET Web Forms Controls TimelineView
.OptionsSelectionBehavior .UpdateSelectionDurationAction

Remarks

The following pictures illustrate the UpdateSelectionDurationAction settings.

The time scale, which has the minimum time interval among enabled scales (i.e. the base scale, accessible via the TimelineView.GetBaseTimeScale method) is the TimeScaleWeek. Therefore, the selected cell represents a week.

OptionSelectionBehaviorA

When a more detailed scale - in this case, the TimeScaleDay - is enabled, the current selection is modified as the UpdateSelectionDurationAction property specifies. If its value is Reset, then the selection shrinks to occupy exactly one cell. Note that one cell in this scale corresponds to one day, not one week.

OptionSelectionBehaviorB

If the UpdateSelectionDurationAction is set to Adjust, the selection retains its time interval and stretches to occupy the entire week:

OptionSelectionBehaviorB1

See Also