OptionsSelectionBehavior.UpdateSelectionDurationAction Property

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.1.Core.dll

Declaration

[DefaultValue(UpdateSelectionDurationAction.Reset)]
public UpdateSelectionDurationAction UpdateSelectionDurationAction { get; set; }
<DefaultValue(UpdateSelectionDurationAction.Reset)>
Public Property UpdateSelectionDurationAction As UpdateSelectionDurationAction

Property Value

Type Default Description
UpdateSelectionDurationAction

Reset

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
.OptionsSelectionBehavior.UpdateSelectionDurationAction
TimelineView
.OptionsSelectionBehavior.UpdateSelectionDurationAction
ASP.NET Controls and MVC Extensions TimelineView
.OptionsSelectionBehavior.UpdateSelectionDurationAction
MVCxSchedulerTimelineView
.OptionsSelectionBehavior.UpdateSelectionDurationAction
ASP.NET Bootstrap Controls BootstrapTimelineView
.OptionsSelectionBehavior.UpdateSelectionDurationAction
BootstrapTimelineView
.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