Back to Devexpress

DxTimeSpanMaskProperties.OutOfBoundsValueProcessMode Property

blazor-devexpress-dot-blazor-dot-dxtimespanmaskproperties-25351598.md

latest2.3 KB
Original Source

DxTimeSpanMaskProperties.OutOfBoundsValueProcessMode Property

Specifies whether users can enter a number that exceeds the section’s maximum threshold (for instance, 65 minutes).

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(TimeSpanOutOfBoundsValueProcessMode.AcceptForBiggestUnits)]
[Parameter]
public TimeSpanOutOfBoundsValueProcessMode OutOfBoundsValueProcessMode { get; set; }

Property Value

TypeDefaultDescription
TimeSpanOutOfBoundsValueProcessModeAcceptForBiggestUnits

A TimeSpanOutOfBoundsValueProcessMode enumeration value.

|

Available values:

NameDescription
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.

|

Remarks

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 additional information: Mask Settings.

See Also

DxTimeSpanMaskProperties Class

DxTimeSpanMaskProperties Members

DevExpress.Blazor Namespace