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

TimeSpanOutOfBoundsValueProcessMode Enum

Lists values that specify whether a time span mask‘s section should accept values that exceed the section’s maximum threshold.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum TimeSpanOutOfBoundsValueProcessMode

#Members

Name Description
Deny

Users can enter only valid numbers into all mask sections (0-23 hours, 0-59 minutes, 0-59 seconds).

UpdateNextSection

Users can enter any number into any mask section. If the entered value exceeds the section’s maximum threshold, the editor increases its neighboring section value.

AcceptForBiggestUnits

Users can enter any number into the mask section that corresponds to the largest measurement unit, while they can enter only valid values in other mask sections.

#Related API Members

The following properties accept/return TimeSpanOutOfBoundsValueProcessMode values:

#Remarks

The OutOfBoundsValueProcessMode property specifies whether users can enter a number that exceeds the section’s maximum threshold (for instance, 65 minutes). The following code snippet allows users to enter any number into any mask section:

Razor
<DxMaskedInput @bind-Value="@time" 
            Mask="@TimeSpanMask.GeneralShortFormat">
    <DxTimeSpanMaskProperties OutOfBoundsValueProcessMode="@TimeSpanOutOfBoundsValueProcessMode.UpdateNextSection" />
</DxMaskedInput>

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

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

See Also