A newer version of this page is available. Switch to the current version.

OptionsSelectionBehavior.UpdateSelectionDurationAction Property

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v18.2.Core.dll


public UpdateSelectionDurationAction UpdateSelectionDurationAction { get; set; }
Public Property UpdateSelectionDurationAction As UpdateSelectionDurationAction

Property Value

Type Default Description


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

Property Paths

You can access this nested property as listed below:

Library Object Type Path to UpdateSelectionDurationAction
WinForms Controls GanttView
ASP.NET Controls and MVC Extensions TimelineView
ASP.NET Bootstrap Controls BootstrapTimelineView


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.


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.


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


See Also