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

DxTimeSpanMaskProperties.UpdateNextSectionOnCycleChange Property

Specifies whether the editor updates the value of the next mask section after the current section’s value passes the maximum or minimum threshold.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(true)]
[Parameter]
public bool UpdateNextSectionOnCycleChange { get; set; }

#Property Value

Type Default Description
Boolean true

true to update the value of the next mask section; otherwise, false.

#Remarks

Time span masks can include multiple sections (for instance, hours and minutes). Users can enter a required value directly into a mask section or use the Up and Down arrow keys (or the mouse wheel) to increase or decrease this section’s value to the desired value. After the current section’s value passes the maximum or minimum threshold, the editor increases or decreases the value of the next mask section accordingly.

Set the UpdateNextSectionOnCycleChange property to false to disable this behavior:

Razor
<DxMaskedInput @bind-Value="@Value"
               Mask="@TimeSpanMask.GeneralShortFormat">
    <DxTimeSpanMaskProperties UpdateNextSectionOnCycleChange="false" />
</DxMaskedInput>

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

Refer to the following topic for more information: Mask Settings.

See Also