Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TimeSpanSelectAllInputMode Enum

Lists values that specify actions the editor should perform after a user selects all content of a time span mask and starts to enter digits.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum TimeSpanSelectAllInputMode

#Members

Name Description
ResetAllSections

The editor clears all sections of the previous value and directs user input into the default focus section.

ResetDefaultFocusSection

The editor directs user input into the default focus section and retains all other section values.

#Related API Members

The following properties accept/return TimeSpanSelectAllInputMode values:

#Remarks

A user can select all editor content, although a time span mask allows users to modify only one section at a time. When a user selects all sections and starts to enter digits, the editor directs user input to the default focus section and retains all other section values.

Set the SelectAllInputMode property to ResetAllSections to clear all sections of the previous value after a user selects all sections and enters a new value. In this mode, the editor also directs user input to the default focus section.

Razor
<DxMaskedInput @bind-Value="@time" 
               Mask="[dd DD ]hh HH[ mm MM][ ss SS]">
    <DxTimeSpanMaskProperties DefaultFocusSection="@TimeSpanSection.Hours"
                              SelectAllInputMode="@TimeSpanSelectAllInputMode.ResetAllSections" />
</DxMaskedInput>

@code {
    TimeSpan time { get; set; } = new TimeSpan(5, 16, 30, 15, 7);
}

Note that the editor hides an optional zero value section if it is the first or last visible section.

Refer to the following topic for more information: Time Span Masks.

See Also